ref: 8fd174a0ce2e6bd4af629653d256c16f608c0165 dir: /libkern/memset.c/
#include <lib9.h> void* memset(void *ap, int c, ulong n) { char *p; int m = (int)n; p = ap; while(m > 0) { *p++ = c; m--; } return ap; }