shithub: scc

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