Can I obtain how much memory is available (roughly) before a malloc()
? I need to adjust some internal variables before doing a malloc()/new
because performing a malloc()
and then checking and deleting is not feasible.
(FYI, I am asking about glibc and tcmalloc's malloc()
, but any other malloc()
is also OK)