STRCAT(3) Library Functions Manual STRCAT(3)

strcatconcatenate two strings

#include <string.h>

char *strcat(char *s1, const char *s2);

The strcat() function appends a copy of the string pointed to by s2 (including the terminating null byte) to the end of the string pointed to by s1 . The initial byte of s2 overwrites the null byte at the end of s1 . If copying takes place between objects that overlap, the behaviour is undefined.

The strcat() function returns s1 ; no return value is reserved to indicate an error.

No errors are defined.

None.

This issue is aligned with the ISO C standard; this does not affect compatibility with XPG3 applications. Reliable error detection by this function was never guaranteed.

None.

strncat(3) , <string.h> .

Derived from Issue 1 of the SVID.

February 1997 posix.fail