shithub: scc

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