shithub: scc

ref: 8d6c4f8946dfb91a79e70efc04db7d089d4abbf0
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;
}