blob: 9b79ac7f27eb14bedf84e3be8e4eb196e9ad11fc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <stdio.h>
#include <stdlib.h>
#include "util.h"
void *
must_malloc(size_t size)
{
void *ret = malloc(size);
if (ret == NULL) {
fprintf(stderr, "out of memory\n");
exit(EXIT_ABNORMAL);
}
}
|