#include <stdio.h>
#include <stdlib.h>
Defines | |
#define | xmem_debug_fd stderr |
Debug messages go to... More... | |
Functions | |
void * | xmalloc (size_t bytes) |
Allocates memory || dies when it goes OOM. More... | |
void * | xcalloc (size_t elements, size_t bytes) |
Allocates memory || dies when it goes OOM. More... | |
void * | xrealloc (void *ptr, size_t bytes) |
Reallocates memory || dies when it goes OOM. More... | |
void | xfree (void *ptr) |
Frees memory. More... | |
Variables | |
int | xmem_want_debug |
Functions will print debug messages if xmem_want_debug != 0. More... |
|
Debug messages go to...
|
|
Allocates memory || dies when it goes OOM.
|
|
Frees memory.
|
|
Allocates memory || dies when it goes OOM.
|
|
Reallocates memory || dies when it goes OOM.
|
|
Functions will print debug messages if xmem_want_debug != 0.
|