Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Tom Rettigs Library - dealloc(<c address>, <n bytes>) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DEALLOC(<C address>, <N bytes>)
 Releases memory allocated with ALLOCATE().
 Returns <expL> true if successful, otherwise false.

 <address> is obtained from the ALLOCATE() function.

 * Allocate memory
 m_buffer = ALLOCATE( 1024 )
 IF "" = m_buffer             && null means an error
    <error message>
    RETURN                    && cancel this routine
 ENDIF
 <code to store data in allocated memory>
 <code to search or manipulate data>
 * Release memory before exiting application
 IF .NOT. DEALLOC(m_buffer, 1024)
    ? "Error -- releasing memory."
 ENDIF

 Hazard
    Unpredictable results will occur if you DEALLOC() memory from
    an address that has not been previously allocated with ALLOCATE().


             Placed in the Public Domain by Tom Rettig Assoc.

See Also: ALLOCATE() PEEK...() POKE...()

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