Rate This Document
Findability
Accuracy
Completeness
Readability

KMGetVersion

Obtain the MATH version information.

int KMGetVersion(KVMLVersion *ver)

Parameters

Parameter

Description

Value Range

Input/Output

ver

Product information structure

The value cannot be NULL.

Output

Return Value

  • Success: The value 1 is returned.
  • Failure: The value 0 is returned.

Examples

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

int main()
{
    KMVersion mver;
    int status = KMGetVersion(&mver);
    if (status == 0) {
        return 0;
    }
    printf("Product Name: %s\n", mver.productName);
    printf("Product Version: %s\n", mver.productVersion);
    printf("Component Name: %s\n", mver.componentName);
    printf("Component Version: %s\n", mver.componentVersion);
    printf("Component AppendInfo: %s\n", mver.componentAppendInfo);
    printf("Software Name: %s\n", mver.softwareName);
    printf("Software Version: %s\n", mver.softwareVersion);
        return 0;
}

Output:

Product Name: Kunpeng Boostkit
Product Version: 23.0.RC2
Component Name: BoostKit-kml
Component Version: 1.8.0
Component AppendInfo: gcc
Software Name: boostkit-kml-math
Software Version: 1.8.0

The version number and compile time in the example above are for reference only.