ref: 7d88d76bc42e2b3f3cabde82673af4107e951797 dir: /sys/src/ape/lib/ap/plan9/9mallocz.c/
#include <stdlib.h> #include <string.h> void* _MALLOCZ(int n, int clr) { void *v; v = malloc(n); if(v && clr) memset(v, 0, n); return v; }