Date: Tue, 4 Jun 1996 08:48:40 +0200 (IST) From: Eli Zaretskii To: GEORGE ARUGAY MONTEMAYOR Cc: djgpp AT delorie DOT com Subject: Re: How much free memory? In-Reply-To: <4ov8i4$kp6@news.csus.edu> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 3 Jun 1996, GEORGE ARUGAY MONTEMAYOR wrote: > how do you figure out free memory avaiable (RAM, not physical)? If you need a function to tell you how much memory is available to `malloc', then there is no such function in DJGPP. You can only check how much memory is available to your program (this includes both physical and virtual, both free and already allocated), and how much physical memory is still free (outside your program's address space). The memory that is owned by `malloc' but is on the list of free blocks that `malloc' maintains cannot be reported, unless somebody writes a function that walks the internal data structures used by `malloc' and counts the free blocks.