shithub: scc

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

View raw version
/* See LICENSE file for copyright and license details. */
#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;
}