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