shithub: scc

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