52#if !defined(HAVE_REALLOCARRAY)
55 if ((n != 0) && (size > (SIZE_MAX / n)))
61 return realloc(p, n * size);
78 if ((nmemb == 0) || (size == 0))
81 void *p = calloc(nmemb, size);
98 void **p = (
void **) ptr;
167 void **pp = (
void **) pptr;
169 if ((nmemb == 0) || (size == 0))
void mutt_exit(int code)
Leave NeoMutt NOW.
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
static void * reallocarray(void *p, size_t n, size_t size)
reallocarray(3) implementation
void * mutt_mem_mallocarray(size_t nmemb, size_t size)
Allocate memory on the heap (array version)
void mutt_mem_realloc(void *pptr, size_t size)
Resize a block of memory on the heap.
void mutt_mem_free(void *ptr)
Release memory allocated on the heap.
void mutt_mem_reallocarray(void *pptr, size_t nmemb, size_t size)
Resize a block of memory on the heap (array version)
void * mutt_mem_malloc(size_t size)
Allocate memory on the heap.
Memory management wrappers.