home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 16560 < prev    next >
Encoding:
Text File  |  1992-11-15  |  1.0 KB  |  32 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!gatech!darwin.sura.net!news.duc.auburn.edu!ducvax.auburn.edu!johnd
  3. From: johnd@ducvax.auburn.edu
  4. Subject: memory function needed
  5. Message-ID: <1992Nov15.114457.1@ducvax.auburn.edu>
  6. Lines: 19
  7. Sender: usenet@news.duc.auburn.edu (News Account)
  8. Nntp-Posting-Host: ducvax
  9. Organization: Auburn University, AL
  10. Date: Sun, 15 Nov 1992 16:44:57 GMT
  11. Lines: 19
  12.  
  13.  
  14. I have a nasty little problem and I was wondering if someone
  15. might be able to help me out.  I am writting a program in C on the
  16. VAX.  I need to "monitor" the amount of memory I have available at
  17. anytime.  I would like to have a function like -- free_memory_left().
  18.  
  19. I have seen the lib$stat_vm function which will give me the amount
  20. of memory allocated (if I could get it to work - access violations??)
  21. If I also new my max virtual memory amount, I would have it!
  22.  
  23. Is there a library call that will give me what I needed?
  24.  
  25. Also, is there something special I have to do use the 
  26. lib$stat_vm (or any runtime library) function?
  27.  
  28. Thanks,
  29. John
  30.  
  31. jdennis@eng.auburn.edu
  32.