ref: 0123946b8df36a0215861b66f4fdba42e3c2dc49 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; }