ref: 41554abe9460deefadc99c78d196d1cd83f7b7fb dir: /lib/c/memset.c/
#include <string.h> #undef memset void * memset(void *s, int c, size_t n) { char *m = s; while (n-- > 0) *m++ = c; return s; }