shithub: scc

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