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?
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?
coreleft in alloc.h
-
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.