memcpy.c (199B)
1 #include <string.h> 2 #undef memcpy 3 4 void * 5 memcpy(void * restrict dst, const void * restrict src, size_t n) 6 { 7 char *s1 = dst; 8 const char *s2 = src; 9 10 while (n-- > 0) 11 *s1++ = *s2++; 12 return dst; 13 }
![]() | 9osExperimental kernel using plan9 ideas for embedded device |
git clone git://git.simple-cc.org/9os | |
Log | Files | Refs | README | LICENSE |