shithub: scc

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