This function returns the version(8-character) of the currently loaded operating system.
(Null-terminated string)

Syntax

void VersionOs(
  char os[9]
);

Parameters

os
[in] An array that stores the OS version.

Return value

None

Remarks

Get the OS version.
Example: "TH15J01" = OPH-5000i OS Version 1.0

Requirements

Header file:
lib.h
Library file:
libSTARTUPOPH5000.a

Sample

#include <stdio.h>
#include "lib.h"

void main(void)
{ 
    static char os[8+1], rom[8+1];
    int key;
    
    ResetKey();
    printf("\fPress TRIGGER_KEY key");
    for(;;)
    {
        if ((key =getchar()) != EOF)
        {
            ResetKey();
            switch (key)
            {
            case TRIGGER_KEY:
                Sound(TSTANDARD,VHIGH,SHIGH,0);
                VersionRom(rom);
                VersionOs(os);
                printf("\nROM = %s", rom);
                printf("\nO/S = %s", os);
                break;

            default:
                Sound(TCLICK,VHIGH,SLOW,0);
                break;
            }
        }
        Idle();
    }
}

Last updated: 2020/10/09