shithub: scc

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