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