shithub: scc

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