ref: c8d87b22d50a17b8832019a93b9293fef19fbd02 dir: /sys/src/libc/port/memset.c/
#include <u.h> #include <libc.h> void* memset(void *ap, int c, usize n) { char *p; p = ap; while(n > 0) { *p++ = c; n--; } return ap; }