shithub: scc

ref: 42fd80186eb88ab683c82a866366d2c72657e1ac
dir: /src/libscc/xrealloc.c/

View raw version
#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;
}