freebsd-dev/contrib/texinfo/lib/memcpy.c
Mark Murray d8b5c7ed06 Upgrade texinfo to the latest-and-greatest.
This has big improvements to the .info file utility support and
much recent OSS requires its features.
1999-01-14 19:35:19 +00:00

21 lines
385 B
C

/* Copy LEN bytes starting at SRCADDR to DESTADDR. Result undefined
if the source overlaps with the destination.
Return DESTADDR. */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
char *
memcpy (destaddr, srcaddr, len)
char *destaddr;
const char *srcaddr;
int len;
{
char *dest = destaddr;
while (len-- > 0)
*destaddr++ = *srcaddr++;
return dest;
}