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 - os() return dos version as string http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 os()                Return DOS version as string
------------------------------------------------------------------------------
 Declaration
   system.hdr

 Syntax
   func char os extern

 Arguments
   None.

 Return
   DOS version as a string.

 Description
   The function os() returns the current DOS operating system version
   as a character string.

 Example
   #define EXAMPLE_SYSTEM
   #include example.hdr

   proc Test_os
   // Print the current DOS version.
   ? os()         // if using DOS 6.22, then prints "6.22"
   endproc

   proc main
   Test_os()
   endproc

See Also: osver()

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