Guardian Native C Library Calls Reference Manual (G06.28+, H06.04+)
strcat(3) Guardian Native C Library Calls Reference Manual
NAME
strcat - Appends a string to a string
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRESRL
G-series native OSS processes: /G/system/sysnn/zcresrl
H-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
H-series OSS processes: /G/system/zdllnnn/zcredll
SYNOPSIS
#include <string.h>
char *strcat(
char *s1,
const char *s2);
PARAMETERS
s1 Specifies the destination string for appending.
s2 Specifies the string to be appended to s1.
DESCRIPTION
The strcat() function appends a copy of the string pointed to by the s2 parameter, including the
terminating null character, to the end of the string pointed to by the s1 parameter. The first byte
of the string pointed to by the s2 parameter overwrites the null character at the end of the string
pointed to by the s1 parameter. When operating on overlapping strings, the behavior of this func-
tion is unreliable.
RETURN VALUES
Upon successful completion, the strcat() function returns a pointer to the resulting string. Other-
wise, this functions returns a null pointer.
RELATED INFORMATION
Functions: malloc(3), memccpy(3), setlocale(3), strchr(3), strcmp(3), strcpy(3), strcoll(3),
strlen(3), strncat(3), strncmp(3), strncpy(3), strpbrk(3), strspn(3), strtok(3), strstr(3),
strxfrm(3), wcscat(3).
6−48 Hewlett-Packard Company 527192-005