shithub: scc

ref: 51f244d2ec7cce0cd116df73b29e3c9ff5cc3425
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;
}