ref: c3b44c3ebb8f21eb91f137fb89558f702d87d54f dir: /sys/src/cmd/unix/drawterm/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; }