Copies a specified number of bytes from one object to another.
#include <string.h>
void *memmove (void *dest, const void *source,
size_t size);
Function Variants
This function also has variants named _memmove32 and _memmove64
for use with 32-bit and 64-bit pointer sizes, respectively. See
Section 1.8 for more information on using
pointer-size-specific functions.
| x | The value of dest. |
#include <string.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