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> nil empty pointer value pp 121</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NIL                         Empty Pointer Value                      pp 121


 Define:  Nil is a predefined identifier used to assign 'no value'
          to an undefined pointer.

 Purpose: Provides a standard value that can be tested to determine if a
          pointer has been assigned an address.

 Notes:   Nil Segment:Offset value is 0000:0000.


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


 Usage:
       TYPE
          PtrType = ^Integer;   { Declare a pointer to Integer data   }

       VAR
          IntPtr  : PtrType ;   { IntPtr is a pointer of type PtrType }

       BEGIN
          IntPtr  := Nil    ;   { IntPtr now points at nothing        }
       END.

See Also: Ofs Pointer Ptr Seg

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