shithub: scc

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