ref: 0f595fa896765dfdbe88c760ebd97edd8a1f123b dir: /src/libc/string/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; }