| Summary |
#include <string.h>
void huge *hmemcpy (
void huge *dest, /* destination buffer */
const void huge *src, /* source buffer */
unsigned int len); /* bytes to copy */
|
| Description | The hmemcpy function copies len bytes from src to dest. If these memory buffers overlap, the hmemcpy function cannot guarantee that bytes in src are copied to dest before being overwritten. If these buffers do overlap, use the hmemmove function. Note - This function uses huge pointers to objects and may be used in any memory model other than Tiny Model.
|
| Return Value | The hmemcpy function returns dest. |
| See Also | fmemcpy, hmemcmp, memcpy, xmemcpy |
| Example |
#include <string.h>
#include <stdio.h> /* for printf */
void tst_memcpy (char huge *src1)
{
char dst1 [101];
char *p;
p = hmemcpy (dst1, src1, sizeof (dst1));
printf ("dst = \"%s\"\n", p);
}
|