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