shithub: scc

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