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