shithub: scc

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