shithub: scc

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