Just a little question

Pierre Girard Cerbere pierreg at siegfried.vlsi.polymtl.ca
Tue Apr 16 12:33:57 AEST 1991


>   Hello,
>   I just want to know if there is a function which returns the 
>   amount of free dynamic memory ? 

None that i know of on UNIX, on PCs and turbo C there is coreleft and
farcoreleft.  Of course you can implement an inefficient one by
allocating blocks 'till malloc tells youy there ain't no space left.

--

  ___   ___  ___  ___  ___  ___  ___
 /    /__   /__/ /__/ /__  /__/ /__
/__  /__   / \  /__/ /___ / \  /___

Pierre Girard, 
Ecole Polytechnique de Montreal, Quebec, Canada.
pierreg at info.polymtl.ca
pierreg at crt.umontreal.ca




More information about the Comp.lang.c mailing list