shithub: scc

ref: 50c78edf22ceb0a91da49921f16d65baef94cdac
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;
}