Guardian Native C Library Calls Reference Manual (G06.28+, H06.05+)
strcpy(3) Guardian Native C Library Calls Reference Manual
NAME
strcpy - Copies strings
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 *strcpy(
char *s1,
const char *s2);
PARAMETERS
s1 Specifies the destination string for the copying.
s2 Specifies the source string for the copying.
DESCRIPTION
The strcpy() function copies the string pointed to by the s2 parameter, including the terminating
null character, to the location pointed to by the s1 parameter. When operating on overlapping
strings, the behavior of this function is unreliable.
RETURN VALUES
Upon successful completion, the strcpy() function returns a pointer to the resulting string. Oth-
erwise, this function returns a null pointer.
RELATED INFORMATION
Functions: malloc(3), memccpy(3), setlocale(3), strcat(3), strchr(3), strcmp(3), strcoll(3),
strlen(3), strncat(3), strncmp(3), strncpy(3), strpbrk(3), strspn(3), strtok(3), strstr(3),
strxfrm(3), wcscat(3).
6−56 Hewlett-Packard Company 527192-007