Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Pascal - <b> freemem release space on the heap pp 125</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FREEMEM                  Release Space on the Heap                   pp 125

 Syntax:  FreeMem (PtrVar,IntVar) ;

 Type:    N/A

 Form:    Procedure

 Purpose: Release IntVar number of bytes in Heap space at PtrVar pointer.

 Notes:   The EXACT number of bytes requested by GetMem must be used.
          FreeMem will release space on the heap.  This procedure will
          release the amount of space requested by GetMem.

          PtrVar is a pointer variable that will point to the released
          space, and IntVar is an integer variable holding the count.


 ----------------------------------------------------------------------------

 Usage:
       VAR
          IntVar : Integer         ;
          PtrVar : ^Integer        ;

       BEGIN
          FreeMem (PtrVar, IntVar) ;
       END.

See Also: GetMem Pointer Release

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson