shithub: scc

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