Concatenate two character arrays.
Compatibility:This function is compatible with the following targets:
|
|
#include <string.h>
char *strcat(char *dest, const char *source);Parameters:
Parameters for this facility are:
strcat() returns the value of dest.
#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