shithub: scc

ref: ff9c7adf8c9068f8be72f7b1cff723224bb03719
dir: /src/libscc/xrealloc.c/

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

void *
xrealloc(void *buff, size_t size)
{
	void *p = realloc(buff, size);

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