ref: 990ceeef3bfd9d56e2e6dd39cf5ac185b1a2de08
dir: /sys/src/libc/port/calloc.c/
#include <u.h> #include <libc.h> void* calloc(ulong n, ulong s) { void *v; if(n > 1 && ((ulong)-1)/n < s) return nil; if(v = mallocz(n*s, 1)) setmalloctag(v, getcallerpc(&n)); return v; }