HP C/iX Library Reference Manual (30026-90004)
Chapter 5 331
HP C/iX Library Function Descriptions
strcat
strcat
Appends one string to another.
Syntax
#include <string.h>
char *strcat(char *
s1
, const char *
s2
);
Parameters
s1
and
s2
Character pointers to null-terminated character strings.
Return Values
x The value of
s1
.
Description
The strcat function appends the entire string pointed to by
s2
including the terminating
null character onto the end of string
s1
. The first character of
s2
overwrites the
terminating null character of
s1
.
Example
Refer to the example in the strcpy() description.
See Also
strcpy(), strncat(), strncpy(), ANSI C 4.11.3.2, POSIX.1 8.1