Mail Archives: djgpp/1995/11/23/02:06:25

Date: Thu, 23 Nov 1995 07:42:22 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Eric NICOLAS <nicolas AT chouette DOT saclay DOT cea DOT fr>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Free Memory Indicators

On 22 Nov 1995, Eric NICOLAS wrote:

> I would like to know how one can get from the system the amount
> of free physical memory (RAM), free swap space memory, used
> physical memory, and used swap sapce memory, in order to build
> a Memory Usage Indicator window in my graphical system (SWORD).

There are a few library functions which report these:


The only caveat is that they all report as free the memory that has not
yet been allocated for the malloc() pool of free memory; memory that has
been allocated, then freed is not counted in the amount they report.  See
the DJGPP FAQ ( from the same place you get DJGPP), section

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019