Thread: determining the amount of free mem

  1. #1
    theuglyone
    Guest

    determining the amount of free mem

    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?

  2. #2
    I'm Back
    Join Date
    Dec 2001
    Posts
    556
    coreleft in alloc.h
    -

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Determing the amount of change(money)
    By Kyeong in forum C Programming
    Replies: 11
    Last Post: 09-30-2008, 04:36 PM
  2. free() doesn't seem to work...
    By AlienJedi in forum C Programming
    Replies: 10
    Last Post: 01-29-2008, 05:27 PM
  3. Free Store of memory
    By George2 in forum C++ Programming
    Replies: 6
    Last Post: 11-12-2007, 02:27 PM
  4. calcuations
    By redmondtab in forum C Programming
    Replies: 39
    Last Post: 09-15-2006, 08:09 PM
  5. Free MIT courses via web.
    By Justin W in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 11-15-2001, 09:41 PM