ref: a8e4d53e8f54a11b7c4dc1cedce0ce228160154e 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; }