memset.c (134B)
1 #include <string.h> 2 #undef memset 3 4 void * 5 memset(void *s, int c, size_t n) 6 { 7 char *m = s; 8 9 while (n-- > 0) 10 *m++ = c; 11 return s; 12 }
sccsimple C compiler | |
git clone git://git.2f30.org/scc | |
Log | Files | Refs | README | LICENSE |