shithub: scc

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