[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


strcat

Concatenate two character arrays.

Compatibility:

This function is compatible with the following targets:

ANSI

BeOS

EMB/RTOS

Mac OS

Palm OS

Win32


Prototype:
#include <string.h>
char *strcat(char *dest, const char *source);
Parameters:

Parameters for this facility are:

dest  
char *  
The destination string  
source  
const char *  
The source to append  

Remarks:

The strcat() function appends a copy of the character array pointed to by source to the end of the character array pointed to by dest. The dest and source arguments must both point to null terminated character arrays. strcat() null terminates the resulting character array.

Return:

strcat() returns the value of dest.

See Also:

"strncasecmp"

Example of strcat() usage.:
#include <string.h>
#include <stdio.h>

int main(void)
{
	char s1[100] = "The quick brown fox ";
	static char s2[] = "jumped over the lazy dog.";

	strcat(s1, s2);
	puts(s1);

	return 0;
}

Output:
The quick brown fox jumped over the lazy dog.


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 16, 2000