scc

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

memset.c (135B)


      1 #include <string.h>
      2 
      3 #undef memset
      4 
      5 void *
      6 memset(void *s, int c, size_t n)
      7 {
      8 	char *m = s;
      9 
     10 	while (n-- > 0)
     11 		*m++ = c;
     12 	return s;
     13 }