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 }
sccsimple C compiler | |
git clone git://git.2f30.org/scc | |
Log | Files | Refs | README | LICENSE |