shithub: scc

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