shithub: scc

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