mirror of
https://github.com/reactos/reactos.git
synced 2025-06-04 17:00:31 +00:00
copied from lib/crtdll/string/memcpy.c
svn path=/trunk/; revision=241
This commit is contained in:
parent
d4164f1a07
commit
edabb16494
1 changed files with 19 additions and 0 deletions
19
reactos/lib/ntdll/string/memcpy.c
Normal file
19
reactos/lib/ntdll/string/memcpy.c
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue