shithub: scc

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