Heap in Turbo C 2.0

Dan Schikore schikore at mentor.cc.purdue.edu
Mon Apr 15 08:43:53 AEST 1991


Is there any way to measure the actual space left on the heap in Turbo C?

The way I understand it, coreleft() is not an accurate measure if I have
free'd some of the memory.

Similarly, when I malloc and an address is returned, as far as I know the
actual size of the block allocated may be more than I ask for.  Can I find
out how large a specific block returned by malloc is??

Thanks for any help..

-Dan Schikore
schikore at mentor.cc.purdue.edu



More information about the Comp.lang.c mailing list