This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
void * | xmalloc (size_t size) |
Reserve size bytes of memory on the heap. | |
void * | xrealloc (void *ptr, size_t size) |
Change the size of a reserved memory block. | |
char * | xstrdup (const char *str) |
Duplicate a string. |
These functions work just like their standard counterparts without the 'x' prefix, but also check for out-of-memory conditions.
Definition in file xmalloc.h.
|
Reserve size bytes of memory on the heap. If there is not enough free memory to reserve size bytes, an error message is sent to the system log, and the application exits with EXIT_FAILURE.
|
|
Change the size of a reserved memory block. If there is not enough free memory to reserve size bytes, an error message is sent to the system log, and the application exits with EXIT_FAILURE.
|
|
Duplicate a string. This function attempt to reserve enough memory to hold a copy of the null-terminated string pointed to by str. If this fails, an error message is sent to the system log, and the application exits with EXIT_FAILURE.
|