Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

strcpy(3) OSS 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 and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcredll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycredll
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).
6138 Hewlett-Packard Company 527187-017