shithub: scc

ref: 3d4872a5f32769876bac1dbe2e2efaa85b864851
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;
}