shithub: scc

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