C Language Development Kit/Functions/GetOsVersion
From OptiWiki
| Availability | All terminals | ||||||||||||||||||||||||||||||||
| Description | This function returns a pointer to the version of the currently loaded operating system. The pointer that is returned, points to a zero terminated character string. The first and third character of the version string defines the terminal type, the second character defines the software type (in this case B, operating system software)
Examples of version strings are: CBWV0131 = PHL2700 operating system, version 1.31 CBX20231 = PHL1300 operating system, special version 2023 revision 1 | ||||||||||||||||||||||||||||||||
| Syntax | char *GetOsVersion( void ); | ||||||||||||||||||||||||||||||||
| Arguments | None | ||||||||||||||||||||||||||||||||
| Returns | A pointer to a zero terminated string with the version number. | ||||||||||||||||||||||||||||||||
| Remarks | None | ||||||||||||||||||||||||||||||||
| Example | #include "lib.h" #include <stdio.h> void main( void ) { int key; resetkey(); printf("\fPress ENT key"); for(;;) { if( (key = getchar()) != EOF) { resetkey(); switch( key ) { case ENT_KEY: sound( TSTANDARD, VHIGH, SHIGH, 0); printf("\nROM = %s", GetBootVersion()); printf("\nO/S = %s", GetOsVersion()); break; default: sound( TCLICK, VHIGH, SLOW, 0); break; } } idle(); } } |
