shithub: scc

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