53#if !defined(HAVE_REALLOCARRAY)
56 if ((n != 0) && (size > (SIZE_MAX / n)))
62 return realloc(p, n * size);
79 if ((nmemb == 0) || (size == 0))
82 void *p = calloc(nmemb, size);
99 void **p = (
void **) ptr;
168 void **pp = (
void **) pptr;
170 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.