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 - curdisk() return the current dos drive in character format http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 curdisk()           Return the current DOS drive in character format
------------------------------------------------------------------------------
 Declaration
   file.hdr

 Syntax
   func char( 1 ) curdisk extern

 Arguments
   None.

 Return
   An upper case character specifying the current drive.

 Description
   The curdisk() function returns the current DOS disk drive in character
   format. It is functionally equivalent to encoding chr( curdrive() + 'A' ).

 Example
   #define EXAMPLE_FILE
   #include example.hdr

   proc Test_curdisk
   ? "Current drive is", curdisk()        // show the current drive
   endproc

   proc main
   Test_curdisk()
   endproc

See Also: curdrive() drivestr()

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