ref: 2808d4eb5c01837aa901cc6512f563da2d8db8ea dir: /lib/c/src/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; }