aboutsummaryrefslogtreecommitdiffstats
path: root/mem.c
blob: dda95d6015d32be679bb29d63c09233ae74f938a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "mem.h"

#include <curses.h>
#include <stddef.h>
#include <stdlib.h>

#include "err.h"

void *xmalloc(size_t size)
{
	void *rtn = malloc(size);
	if (!rtn) {
		die("Out of memory");
	}
	return rtn;
}