shithub: scc

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