shithub: scc

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