shithub: scc

ref: 0723bca7d5a307fb6d1dcb61555c13fcae0ee9cb
dir: /lib/xmalloc.c/

View raw version

#include <stdlib.h>
#include "../inc/cc.h"

void *
xmalloc(size_t size)
{
	void *p = malloc(size);

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