Mail Archives: djgpp/1997/11/15/08:15:31
On Thu, Nov 13, 1997 8:10 PM, Marian Lysak <mailto:xlysak AT fi DOT muni DOT cz>
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 <xlysak AT fi DOT muni DOT cz>
>
Try:
#include <dpmi.h>
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!
- Raw text -