shithub: scc

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