scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

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 }