shithub: scc

ref: 3ba625a83430f2616905108eaa93ac8c9009d45a
dir: /src/libscc/xmalloc.c/

View raw version
static char sccsid[] = "@(#) ./lib/scc/xmalloc.c";
#include <stdlib.h>
#include <scc/scc.h>

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

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