shithub: scc

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