Guardian Procedure Calls Reference Manual
TOSVERSION Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Returned Value
Example
Summary
The TOSVERSION procedure identifies the version of the operating system that is running.
Syntax for C Programmers
#include <cextdecs(TOSVERSION)>
short TOSVERSION ( void );
Syntax for TAL Programmers
version := TOSVERSION;
Returned Value
INT
Version of the operating system in the form:
Uppercase ASCII letter indicating the version of the operating system.<0:7>
Binary number specifying the release number of the version.<8:15>
Operating-System VersionASCII Letter
DnnN
FnnP
GnnQ
HnnR
JnnT
Example
In the following example, if the operating-system version is D10, the returned value contains "N"
in bits <0:7> and binary 10 in bits <8:15>.
VERSION := TOSVERSION;
1426 Guardian Procedure Calls (T-V)