View Full Version : determining the amount of free mem

03-13-2002, 12:16 PM
a (long) while ago someone mentioned a function that could determine the amount of either total free memory or the free memory in the heap (i dont remember which). Does anyone know of a function that could accomplish either?

03-14-2002, 10:02 PM
coreleft in alloc.h

04-03-2002, 10:54 AM
You could also make your own using a loop to keep declaring memory, add up the bits it's taken up so far, and then test to see each one exists after you declare it, with something like if(*variable) break;, and then continue with the loop.