shithub: scc

ref: 3ae3ab16c27973a7fdee2bd6daad1aad9cc9910c
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;
}