VMS Help
CRTL, memmove
*Conan The Librarian
|
Copies a specified number of bytes from one object to another.
Format
#include <string.h>
void *memmove (void *dest, const void *source, size_t size);
The memmove function has variants named _memmove32 and _memmove64
for use with 32-bit and 64-bit pointer sizes, respectively.
dest
A pointer to the destination object.
source
A pointer to the source object.
size
The length of the object to be copied.
In Compaq C for OpenVMS Systems, memmove and memcpy perform the
same function. Programs that require portability should use
memmove if the area pointed at by dest could overlap the area
pointed at by source.
x The value of dest.
#include <string.h>
#include <stdio.h>
main()
{
char pdest[14] = "hello there";
char *psource = "you are there";
memmove(pdest, psource, 7);
printf("%s\n", pdest);
}
This example produces the following output:
you are there