strcat
concatenate strings
Synopsis
#include <string.h>
char *strcat(char *s1, const char *s2);
Description
The
function appends a copy of the null-terminated string pointed
strcat
to by
to the end of the null-terminated string pointed to by
s2
returns a pointer to the new
behavior of
strcat
Error Conditions
The
function does not return an error condition.
strcat
Example
#include <string.h>
char string1[50];
string1[0] = 'A';
string1[1] = 'B';
string1[2] = '\0';
strcat(string1, "CD");
See Also
strncat
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
string, which is null-terminated. The
s1
is undefined if the two strings overlap.
/* new string is "ABCD" */
C/C++ Run-Time Library
. It
s1
3-121
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers