blob: 959cbf694645b6abec5d4a7855be04d50ca2fe7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <stdlib.h>
#include <stdio.h>
#include "common.h"
void* local_malloc(size_t size)
{
void* mem = malloc(size);
if (!mem) {
fprintf(stderr, "Failed to allocate memory\n");
exit(-1);
}
return mem;
}
|