shithub: scc

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