shithub: scc

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