Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - _pointer memory pointer http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _POINTER            Memory pointer
------------------------------------------------------------------------------
 Declaration
   memory.hdr

 Syntax
   typedef ulong _POINTER

 Description
   The _POINTER type is used to declare a pointer to an arbitrary
   memory object. A generic memory pointer is returned by the various
   memory allocation and address generation tools, like the malloc()
   function, or the & operator.

 Example
   #define EXAMPLE_TYPE
   #include example.hdr

   proc Test_POINTER
   vardef
      _POINTER pMem
   enddef
   ? coreleft()
   pMem := malloc( 50000 )
   ? coreleft()
   free( pMem )
   ? coreleft()
   endproc

   proc main
   Test_POINTER()
   endproc

See Also: & malloc()

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