Guardian Native C Library Calls Reference Manual (G06.28+, H06.04+)
Guardian Native C Library Calls (j - m) memcpy(3)
NAME
memcpy - Copies a character in memory
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>
void *memcpy(
void *s1,
const void *s2,
size_t n);
PARAMETERS
s1 Points to the location of a destination string.
s2 Points to the location of a source string.
n Specifies the number of bytes to copy.
DESCRIPTION
The memcpy() function operates on strings in memory areas. A memory area is a group of con-
tiguous bytes bound by a count and not terminated by a null character. This memory function
does not check for overflow of the receiving memory area.
The memcpy() function copies n bytes from the string pointed to by the s2 parameter into the
location pointed to by the s1 parameter.
NOTES
When copying overlapping strings, the behavior of this function is unreliable.
RETURN VALUES
The memcpy() function returns the string pointed to by the s1 parameter.
RELATED INFORMATION
Functions: memccpy(3), memchr(3), memcmp(3), memmove(3), memset(3), strcat(3).
527192-005 Hewlett-Packard Company 4−51