shithub: scc

ref: 7be77a80b5c66e2627f4ceab4b0b62e6755e302b
dir: /lib/xmalloc.c/

View raw version

#include <stdlib.h>
#include <cc.h>

void *
xmalloc(size_t size)
{
	register void *p = malloc(size);

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