NetBSD/gnu/dist/gawk/missing/memcpy.c
1999-06-13 20:39:15 +00:00

19 lines
261 B
C

/*
* memcpy --- copy strings.
*
* We supply this routine for those systems that aren't standard yet.
*/
char *
memcpy (dest, src, l)
register char *dest, *src;
register int l;
{
register char *ret = dest;
while (l--)
*dest++ = *src++;
return ret;
}