SCAKSOLVERGetVersion
Obtain the solver version.
Interface Definition
C interface:
int KSCASOLVERGetVersion(KSCASOLVERVersion *ver);
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
ver |
KSCASOLVERVersion* |
Product information structure |
Input/Output |
Return Value
Return Value |
Type |
Description |
|---|---|---|
0 |
int |
Success. |
1 |
int |
The value of ver is empty. |
Dependencies
#include "kml_scasolver.h"
#include "kml_service.h"
Examples
C interface:
int main()
{
KSCASOLVERVersion *ver = (KSCASOLVERVersion*)malloc(sizeof(KSCASOLVERVersion));
int res = KSCASOLVERGetVersion(ver);
if (res != 0) {
printf("Get version error.\n");
return 0;
}
printf("Component Name: %s\nComponent Version: %s\nSoftware Name: %s\nSoftware Version: %s\n",
ver->componentName, ver->componentVersion, ver->softwareName, ver->softwareVersion);
return 0;
}
Execution result
Component Name: BoostKit-kml Component Version: 1.6.0 Software Name: boostkit-kml-scasolver Software Version: 1.6.0
The version number in the example above are for reference only.
Parent topic: Cluster Mode