On Fri, 30 May 1997 16:16:22 +0300 (EET DST) Jukka Virtanen jtv@cc.hut.fi wrote:
Does anyone know of any way (including portable C functions) to return the total available system memory, and the total free system memory?
Information of this kind would help in making MemAvail() and MaxAvail() useful on platforms other than DJGPP. Thanks.
This is kind of system specific, but perhaps you could try the 'getrlimit' syscall in unix boxes to get the memory size that a process is allowed to use.
Thanks. Is this available in the unix C libraries? Otherwise, I will just have to leave the functions as they are.
Best regards, The Chief Dr Abimbola A. Olowofoyeku (The African Chief, and the Great Elephant) Author of: Chief's Installer Pro v3.50 for Win16 and Win32. Homepage: http://ourworld.compuserve.com/homepages/African_Chief/ E-mail: laa12@cc.keele.ac.uk