shithub: scc

ref: b5f8e196aa5692b1ed355de2c772b88816d89d44
dir: /src/libscc/xcalloc.c/

View raw version
static char sccsid[] = "@(#) ./lib/scc/xcalloc.c";
#include <stdlib.h>
#include <scc/scc.h>

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

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