shithub: scc

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