 | C251 User's Guide |  |
|
|
| hmemmove| Summary |
#include <string.h>
void huge *hmemmove (
void huge *dest, /* destination buffer */
const void huge *src, /* source buffer */
unsigned long len); /* bytes to move */
| | Description | The hmemmove function copies len bytes from src to dest. If these memory buffers overlap, the hmemmove function ensures that bytes in src are copied to dest before being overwritten. Note - This function uses huge pointers to objects.
| | Return Value | The hmemmove function returns dest. | | See Also | memmove | | 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);
hmemmove (&buf [0], &buf [16], 32);
printf ("buf after = %s\n", buf);
}
|
|
|