GetLibVersion
The function interface declaration is as follows.
Obtains the HMPP version information:
const HmppLibraryVersion* HMPPS_GetLibVersion ();
Return Value
Returns the start address that points to the HmppLibraryVersion variable that stores version information.
Error Codes
None
Note
Do not release the memory to which the pointer points.
Example
void GetLibVersionExample()
{
const HmppLibraryVersion *libVersion = HMPPS_GetLibVersion();
printf("HMPP_VERSION_MAJOR = %d\n", libVersion->major);
printf("HMPP_VERSION_MINOR = %d\n", libVersion->minor);
printf("HMPP_VERSION_PATCH = %d\n", libVersion->patch);
printf("HMPP_VERSION_BUILDDATE = %s\n", libVersion->buildDate);
}
Output:
HMPP_VERSION_MAJOR = 1 HMPP_VERSION_MINOR = 0 HMPP_VERSION_PATCH = 0 HMPP_VERSION_BUILDDATE = 2020.04.27
For details, see the definition in the hmpp.h header file.
Parent topic: Basic and Common Calculations