shithub: scc

ref: 7c88dc7a0c96e24b53b0aeea66d74b3a757be2d4
dir: /lib/xrealloc.c/

View raw version

#include <stdlib.h>
#include <cc.h>

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

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