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> coninptr console input routine pointer pp 209</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CONINPTR               Console Input Routine Pointer                 pp 209

 Syntax:  ConInPtr ;

 Type:    Pointer

 Form:    Function

 Purpose: ConInPtr is a predefined variable pointing to the address of
          the ConIn function.


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


 Usage:
       TYPE
          PtrType = ^Real         ;  { Define a pointer type            }

       VAR
          AdrPtr  : PtrType       ;  { Define a pointer of type PtrType }
          Segment : Integer       ;  { Segment value                    }
          Offset  : Integer       ;  { Offset value                     }

       BEGIN
          AdrPtr^ := ConInPtr     ;  { Assign to our pointer            }
          Segment := Seg (AdrPtr) ;  { Get AuxInPtr segment             }
          Offset  := Ofs (AdrPtr) ;  { Get AuxInPtr offset              }
       END.

See Also: ConOutPtr ConStPtr

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