shithub: scc

ref: 475fdec2b580ce32a5e53a3d33c139e23d977b07
dir: /lib/xrealloc.c/

View raw version
#include <stdlib.h>
#include "../inc/cc.h"

void *
xrealloc(void *buff, size_t size)
{
	void *p = realloc(buff, size);

	if (!p)
		die("out of memory");
	return p;
}