shithub: scc

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