Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- LanMan Library Reference Guide - <b>ll_freemem()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 LL_FREEMEM()
 Free a memory block allocated by LL_Str2Mem()
------------------------------------------------------------------------------

 Syntax

      LL_FreeMem( <nSelector> ) -> NIL

 Arguments

     <nSelector> is the selector returned when the memory block was
     allocated by LL_Str2Mem()

 Returns

     Nothing

 Description

     LL_FreeMem() is used to free a memory block which has previously been
     allocated by LL_Str2Mem().

     LL_FreeMem() requires the CPMI library.

 Examples

     local cString := "Hello world!'
     local nSelector
     nSelector := LL_Str2Mem(cString)
     if nSelector > 0
        ? 'The string was copied to memory'
        // Use the memory block for some purpose ...
        // ... and then release it
        LL_FreeMem(nSelector)
     else
        ? 'Could not copy the string to memory'
     endif

 Source: FREEMEM.ASM

 Author: Klas Engwall <klas.engwall@engwall.com>

See Also: LL_Str2Mem()

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