memmove
raw OCR
Copies a block of n bytes.
Defined in header <mem.h>
Syntax
#include <mem.h>
void *memmove(void *dest, const void *src,size_tn);
Portability
| DOS | UNIX | Windows | ANSI C | C++ only |
|---|---|---|---|---|
| ■ | ■ | ■ | ■ |
Remarks
| memmove | is available on UNIX System V systems. |
| memmove and destination blocks overlap, bytes in the overlapping locations are copied correctly. | copies a block of n bytes from src to dest. Even when the source |
Return value
| memmove | returns dest. |
See also
Example
#include <string.h>
#include <stdio.h>
int main(void)
{
char *dest = "abcdefghijkliTinopqrstuvwxyz0123456789";
char *src = 'i******************************™.
printf("destination prior to memmove: %s\n", dest);
memmove (dest, src, 26);
printf("destination after memmove: %s\n", dest);
return 0;
}
Differences from modern implementations
Nothing recorded yet.
Modern references
These are search links, not yet checked by hand.
Stable link: /3.1/mem.h/memmove/
· short form /3.1/memmove/