update for HEAD-2003021201
[reactos.git] / lib / msvcrt / string / memcpy.c
1 #include <msvcrt/string.h>
2
3 #pragma function(memcpy)
4
5 /* This is the most reliable way to avoid incompatibilities
6    in available built-in functions on various systems.  */
7 void* memcpy(void* to, const void* from, size_t count)
8 {
9   register char* f = (char*)from;
10   register char* t = (char*)to;
11   register int i = count;
12
13   while (i-- > 0)
14     *t++ = *f++;
15
16   return to;
17 }