shithub: scc

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