home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!gatech!darwin.sura.net!news.duc.auburn.edu!ducvax.auburn.edu!johnd
- From: johnd@ducvax.auburn.edu
- Subject: memory function needed
- Message-ID: <1992Nov15.114457.1@ducvax.auburn.edu>
- Lines: 19
- Sender: usenet@news.duc.auburn.edu (News Account)
- Nntp-Posting-Host: ducvax
- Organization: Auburn University, AL
- Date: Sun, 15 Nov 1992 16:44:57 GMT
- Lines: 19
-
-
- I have a nasty little problem and I was wondering if someone
- might be able to help me out. I am writting a program in C on the
- VAX. I need to "monitor" the amount of memory I have available at
- anytime. I would like to have a function like -- free_memory_left().
-
- I have seen the lib$stat_vm function which will give me the amount
- of memory allocated (if I could get it to work - access violations??)
- If I also new my max virtual memory amount, I would have it!
-
- Is there a library call that will give me what I needed?
-
- Also, is there something special I have to do use the
- lib$stat_vm (or any runtime library) function?
-
- Thanks,
- John
-
- jdennis@eng.auburn.edu
-