shithub: scc

ref: cf234838bb0e7c772d6f3214a28fc55951737abe
dir: /lib/scc/xcalloc.c/

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

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

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