shithub: scc

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