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