shithub: scc

ref: fe896e5a49d5d6a1218f3389d2e6ca1a8b7c1228
dir: /lib/scc/xmalloc.c/

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

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

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