shithub: scc

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