shithub: scc

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