shithub: scc

ref: 381a14fc9775e9f2cabbac45a4586f55feefc39c
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;
}