| Summary |
#include <string.h>
void xhuge *xmemmove (
void xhuge *dest, /* destination buffer */
const void xhuge *src, /* source buffer */
unsigned long len); /* bytes to move */
|
| Description | The xmemmove function copies len bytes from src to dest. If these memory buffers overlap, the xmemmove function ensures that bytes in src are copied to dest before being overwritten. Note - This function uses xhuge pointers to objects and may be used in any memory model other than Tiny Model.
|
| Return Value | The xmemmove function returns dest. |
| See Also | xmemccpy, xmemchr, xmemcmp, xmemcpy, xmemset |
| 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);
xmemmove (&buf [0], &buf [16], 32);
printf ("buf after = %s\n", buf);
}
|