Commit | Line | Data |
---|---|---|
1 | #include <string.h> | |
2 | ||
3 | extern int value; | |
4 | ||
5 | void *memcpy(void *dest, const void *src, size_t n) | |
6 | { | |
7 | char *d = (char *) dest; | |
8 | const char *s = (const char *) src; | |
9 | ||
10 | while (n--) | |
11 | *d++ = *s++; | |
12 | ||
13 | value = 1; | |
14 | return dest; | |
15 | } |