HP C/iX Library Reference Manual (30026-90004)

Chapter 5 257
HP C/iX Library Function Descriptions
memmove
memmove
Copies a specified number of characters from one object to another.
Syntax
#include <string.h>
void *memmove(void *
s1
, const void *
s2
, size_t
n
);
Parameters
s1
A pointer to the target object.
s2
A pointer to the source object.
n
The number of characters to copy.
Return Values
x The value of
s1
.
Description
This function copies
n
characters from the object pointed to by
s2
into the object pointed to
by
s1
. The memmove function is similar to memcpy but allows the source and destination
objects to overlap.
See Also
memcpy(), strcpy(), memcpy(), memchr(), memcmp(), memset(), strncpy(), ANSI C
4.11.2.2