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