shithub: scc

ref: dfd6b350e13d9915b819b92c890052d7474188c5
dir: /lib/xrealloc.c/

View raw version

#include <stdlib.h>
#include "../inc/cc.h"

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

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