shithub: scc

ref: 3dca060d1ad6e41aa5ec4c4bc26bfff2fff54a1d
dir: /lib/xcalloc.c/

View raw version

#include <stdlib.h>
#include <cc.h>

void *
xcalloc(size_t n, size_t size)
{
	register void *p = calloc(n, size);

	if (!p)
		die("out of memory");
	return p;
}