Hi Buddy,<br>"All available memory" dangerous words...but I guess U mean all the meory available to the individual process.<br>For that in UNIX we have a system call called getrlimit().<br>e.g getrlimit(RLIMIT_DATA, ); <br> will give U the the maximum size of a process's heap in bytes.<br><br>If U want to find out the physical memory present in the machine...I dont know of any straight-forward way to do that through a C program.<br><br>Adios<br>amit<br><A HREF="mailto:crazy_indian@mailcity.com">crazy_indian@mailcity.com</A><br>
<br>Well, to find the available RaM memory, you should use some functions like "coreleft()". This is good for DOS environements, i dont'know for sure how it works under Win, or if it works. <br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.