Reverted latest changes.
[reactos.git] / reactos / lib / msvcrt / string / memcpy.c
1 #include <msvcrt/string.h>
2
3 /* This is the most reliable way to avoid incompatibilities
4 in available built-in functions on various systems. */
5 void *
6 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 }