I did a search, didn't exactly find what I was looking for.

I am using mingw 3.2 . Is there a function that can tell you how much memory you have? I want to be sure that I am deleting properly.

i.e. something similar to coreleft() in borland's alloc.h. I have a book that said I can use this function, but Borland keeps giving me an undeclared error. I have looked at alloc.h and it seems to be in there, but Borland won't let me call it.

just something I can call at the beginning and end of my programs for debugging purposes.

Thanks.