Version Query Function
Obtain the KML_NUMPY version information.
Interface Definition
NumpyResult NumpyGetProductVersion(NumpyProVersion *packageInfo);
Parameters
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
packageInfo |
Product information structure. |
The value cannot be NULL. |
Output |
Return Value
- Success: NUMPY_STS_NO_ERR is returned.
- Failure: NUMPY_STS_NULL_PTR_ERR is returned.
Examples
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #include <stdio.h> #include "knpy.h" int main() { NumpyProVersion packageInfo; NumpyResult ret = NumpyGetProductVersion(&packageInfo); if (ret == NUMPY_STS_NO_ERR) { printf("\nNumpy\n"); printf("Product Name: %s\n", packageInfo.productName); printf("Product Version: %s\n", packageInfo.productVersion); printf("Component Name: %s\n", packageInfo.componentName); printf("Component Version: %s\n", packageInfo.componentVersion); printf("Component AbiVersion: %s\n", packageInfo.componentAbiVersion); printf("Component AppendInfo: %s\n", packageInfo.componentAppendInfo); printf("Software Name: %s\n", packageInfo.softwareName); printf("Software Version: %s\n", packageInfo.softwareVersion); } return 0; } |
Output:
1 2 3 4 5 6 7 8 9 | Numpy Product Name: Kunpeng HPCKit Product Version: 24.0.RC1 Component Name: HPCKit-kml Component Version: 2.3.0 Component AbiVersion: 1 Component AppendInfo: gcc Software Name: hpckit-kml-numpy Software Version: 2.3.0 |
The version number and compile time are subject to the running results in your environment. The preceding results are for reference only.
Parent topic: Function Syntax