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