mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 12:23:30 +00:00
copied from lib/crtdll/string/memcpy.c
svn path=/trunk/; revision=241
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user