_osmajor, _osminor
Contain the major and minor DOS version numbers.
Defined in header <dos.h>
Syntax
extern unsigned char _osmajor;
extern unsigned char _osminor;
Remarks
The major and minor version numbers are available individually through _osmajor and _osminor. jjsmajor is the major version number, and jDsminor is the minor version number. For example, if you are running DOS version 3.2, jDsmajor will be 3, and _osminor will be 20.
These variables can be useful when you want to write modules that will run on DOS versions 2.x and 3.x. Some library routines behave differently depending on the DOS version number, while others only work under DOS 3.x. (For example, refer to _open, creatnew, and iocti in the lookup section of this Reference Guide.)
Differences from modern implementations
Nothing recorded yet.
Modern references
These are search links, not yet checked by hand.
Extraction notes
- heading `_osnnajor, _osnninor` read as `_osmajor, _osminor`
Stable link: /3.1/dos.h/_osmajor/
· short form /3.1/_osmajor/