shithub: scc

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