shithub: scc

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

View raw version
static char sccsid[] = "@(#) ./lib/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;
}