9os

Experimental kernel using plan9 ideas for embedded device
git clone git://git.simple-cc.org/9os
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 }