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