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