KMGetVersion
Obtain the MATH version information.
int KMGetVersion(KVMLVersion *ver)
Parameters
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
ver |
Product information structure |
This parameter cannot be left blank. |
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* ver = (KMVersion*)malloc(sizeof(KMVersion));
int status = KMGetVersion(ver);
printf("Component : %s\n", ver.component);
printf("Version : %s\n", ver.version);
printf("Support Package Name: %s\n", ver.supportPackage);
printf("Compile Time : %s\n", ver.compileTime);
return 0;
}
Output:
Component : boostkit-kml-math Version : 1.3.0 Support Package Name: BoostKit-kml-math_1.3.0 Compile Time : 2021/08/31-12:00
The version number and compile time in the example above are for reference only.
Parent topic: Function Syntax