shithub: scc

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