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