shithub: scc

ref: 5c1c29b22a2402dd6e830f9d1e1bf7f16738d0d1
dir: /lib/xcalloc.c/

View raw version

#include <stdlib.h>
#include "../inc/cc.h"

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

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