ref: 16b6d7eff6ed79f63a7024868651f5652f2b4960 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; }