copied from lib/crtdll/string/memcpy.c

svn path=/trunk/; revision=241
This commit is contained in:
jean 1999-02-16 12:38:46 +00:00
parent d4164f1a07
commit edabb16494

View file

@ -0,0 +1,19 @@
typedef unsigned int size_t;
void *
memcpy (char *to, char *from, size_t count);
/* This is the most reliable way to avoid incompatibilities
in available built-in functions on various systems. */
void *
memcpy (char *to, char *from, size_t count)
{
register char *f = from;
register char *t = to;
register int i = count;
while (i-- > 0)
*t++ = *f++;
return to;
}