shithub: scc

ref: 59747e56d427dd7c5718042ee87d1b73231fe55a
dir: /lib/xmalloc.c/

View raw version
/* See LICENSE file for copyright and license details. */
#include <stdlib.h>
#include "../inc/cc.h"

void *
xmalloc(size_t size)
{
	void *p = malloc(size);

	if (!p)
		die("out of memory");
	return p;
}