Mail Archives: djgpp/1996/04/07/11:29:55
On Sat, 6 Apr 1996, Thierry Tremblay wrote:
> I need to know how much heap memory is left in my system.
> I'm programming in C++ with djgpp, and writing an editor (like QEdit),
> and would like to print the amount of free memory on the status bar.
> Is there any way to do it?
The current library `malloc' doesn't have any such reporting facilities.
You will have either to understand how it works and add such facilities,
or use some other `malloc' that does have them.
On the other hand, as long as sbrk(0) doesn't approach the available
physical memory (i.e., if you don't get close to paging), why should your
users care at all?
- Raw text -