shithub: scc

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