NetBSD/gnu/dist/gawk/missing/memcpy.c

19 lines
261 B
C
Raw Normal View History

1999-06-14 00:39:15 +04:00
/*
* 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;
}