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