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