summaryrefslogtreecommitdiffstats
path: root/XAlloc.h
blob: 98a422fc2d1fba0b305bc57427a635a2d2e9f32d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef HEADER_XAlloc
#define HEADER_XAlloc

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif

#include "Macros.h"

#include <assert.h>
#include <err.h>
#include <stdlib.h>

void fail(void) ATTR_NORETURN;

void* xMalloc(size_t size);

void* xCalloc(size_t nmemb, size_t size);

void* xRealloc(void* ptr, size_t size);

#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy