shithub: scc

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