23 #ifndef MUTT_LIB_MEMORY_H 24 #define MUTT_LIB_MEMORY_H 30 #define MAX(a, b) (((a) < (b)) ? (b) : (a)) 31 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) 33 #define mutt_array_size(x) (sizeof(x) / sizeof((x)[0])) 40 #define FREE(x) mutt_mem_free(x) void mutt_mem_realloc(void *ptr, size_t size)
Resize a block of memory on the heap.
void * mutt_mem_malloc(size_t size)
Allocate memory on the heap.
void mutt_mem_free(void *ptr)
Release memory allocated on the heap.
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.