ref: 229d7bb35315ade6f25d96071adfd6933a50015d dir: /libc/mallocz.c/
#include <u.h> #include <libc.h> void* mallocz(ulong n, int clr) { void *v; v = malloc(n); if(v && clr) memset(v, 0, n); return v; }