3 |
|
|
4 |
#include <stddef.h> |
#include <stddef.h> |
5 |
|
|
6 |
|
/* Allocate memory and abort process on error. */ |
7 |
void *xmalloc (size_t size); |
void *xmalloc (size_t size); |
8 |
|
|
9 |
|
/* Allocate 'n' zeroed memory block of 'size' and abort process on error. */ |
10 |
void *xcalloc (size_t nmemb, size_t size); |
void *xcalloc (size_t nmemb, size_t size); |
11 |
|
|
12 |
|
/* Reallocate memory and abort process on error. */ |
13 |
void *xrealloc (void *ptr, size_t size); |
void *xrealloc (void *ptr, size_t size); |
14 |
|
|
15 |
#endif /* UAR_XMALLOC_H */ |
#endif /* UAR_XMALLOC_H */ |