shithub: scc

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