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