Description
The strcat() function appends a copy of the string pointed to by s2 (including the terminating null character) to the end of the string pointed to by s1. The initial character of s2 overwrites the null character at the end of s1. If copying occurs between objects that overlap, the behavior is undefined.
The function strcat() does not allocate any storage. The caller must insure that the buffer pointed to by s1 is long enough for string s2 and its terminating null character.
Syntax
char *strcat(char *s1, const char *s2)
Parameters
- s1
Is the null-terminated string to be modified.
- s2
Is the null-terminated string to be copied to the end of s1.
Return Values
The strcat() function returns the value of s1.