shithub: scc

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