shithub: scc

ref: 522661a7fb8fd6564b280de135ca77bc1ac8d53d
dir: /lib/xcalloc.c/

View raw version
/* See LICENSE file for copyright and license details. */
#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;
}