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