shithub: scc

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