shithub: scc

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