freebsd-dev/gnu/libexec/uucp/libuucp/memcpy.c

19 lines
317 B
C
Raw Normal View History

1993-08-05 18:28:27 +00:00
/* 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;
}