shithub: scc

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