From: "Seth Hill" Newsgroups: comp.os.msdos.djgpp Subject: Re: How much free memory ? Date: 13 Nov 97 15:02:16 -0800 Organization: All USENET -- http://www.Supernews.com Lines: 37 Message-ID: References: <346BCF2F DOT 181F AT fi DOT muni DOT cz> NNTP-Posting-Host: 9272 AT 206 DOT 163 DOT 152 DOT 136 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Thu, Nov 13, 1997 8:10 PM, Marian Lysak wrote: >I would like to know if anybody know how could I get >amount of free memory in DJGPP. >--------------------- > >In Borland C 3.1 is function [ coreleft() ] in alloc.h header file, >but in DJGPP I couldn't find any function like this one. > >If you can answer to my e-mail address please. > >Thanks for all answers ! > >Marian Lysak > Try: #include int get_free_mem( void ) { __dpmi_free_mem_info info; __dpmi_get_free_memory_information( &info ); return info.largest_availible_free_block_in_bytes; } _____________________________________________________________________ Seth Hill | ferris AT proaxis DOT com Troposphere Software | http://www.proaxis.com/~ferris/software/ "What are we going to do tomorrow night, Brain?" "The same thing we do every night, Pinky - Try to take over the world!