shithub: scc

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