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