home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / prof_c / 05oslib / dos / ver.c < prev   
Encoding:
C/C++ Source or Header  |  1988-08-11  |  496 b   |  18 lines

  1. /*
  2.  *    ver -- get the MS-DOS (or PC-DOS) version number
  3.  */
  4.  
  5. #include <local\doslib.h>
  6.  
  7. /************************************************************
  8. *  For MS-DOS versions prior to 2.00, the low byte (AL) of
  9. *  the return value is zero.  For versions 2.00 and beyond,
  10. *  the low byte is the major version number and the high
  11. *  byte (AH) is the minor version number.
  12. ************************************************************/
  13.  
  14. int ver()
  15. {
  16.     return(bdos(DOS_VERSION, 0, 0));
  17. }
  18.