shithub: scc

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