shithub: scc

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