NetBSD/gnu/libexec/uucp/libuucp/memcpy.c
1993-08-04 19:33:45 +00:00

19 lines
317 B
C

/* memcpy.c
Copy one memory buffer to another. */
#include "uucp.h"
pointer
memcpy (ptoarg, pfromarg, c)
pointer ptoarg;
constpointer pfromarg;
size_t c;
{
char *pto = (char *) ptoarg;
const char *pfrom = (const char *) pfromarg;
while (c-- != 0)
*pto++ = *pfrom++;
return ptoarg;
}