| Summary | |
| Description | The memmove function copies len bytes from src to dest. If these memory buffers overlap, the memmove function ensures that bytes in src are copied to dest before being overwritten. |
| Return Value | The memmove function returns dest. |
| See Also | memccpy, memchr, memcmp, memcpy, memset |
| Example |
#include <string.h>
#include <stdio.h> /* for printf */
void tst_memmove (void) {
static char buf [] = "This is line 1 "
"This is line 2 "
"This is line 3 ";
printf ("buf before = %s\n", buf);
memmove (&buf [0], &buf [16], 32);
printf ("buf after = %s\n", buf);
}
|