shithub: scc

ref: 4212f8a3ecf712dbf89c9449336bc5b3d9f2aaed
dir: /lib/scc/xrealloc.c/

View raw version
static char sccsid[] = "@(#) ./lib/scc/xrealloc.c";
#include <stdlib.h>
#include "../../inc/scc.h"

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

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