shithub: scc

ref: 8182a159c71c03a6cd28b9c8651c26db5e1743c4
dir: /lib/xmalloc.c/

View raw version

#include <stdlib.h>
#include "../inc/cc.h"

void *
xmalloc(size_t size)
{
	void *p = malloc(size);

	if (!p)
		die("out of memory");
	return p;
}