shithub: scc

ref: 5eb6c9dd70e390d3a92f27b40d4d0cb7aa0ae03e
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;
}