shithub: scc

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