can't use _memavl() in malloc.h

It seems that malloc.h does not contain the function _memavl() which returns the approximate # of bytes left in the heap. What is the alternate way to find out the amount of available heap in linux? Basically what I am doing is that I check the available heap at the beginning and end of the program to make sure I don't have memory leak in my program. Thanks!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!