Returns information about the active version of the Intel IPP software for cryptography.
const IppLibraryVersion* ippcpGetLibVersion(void);
The function ippcpGetLibVersion is declared in the ippcp.h file. This function returns a pointer to a static data structure IppLibraryVersion that contains information about the current version of the Intel IPP software for cryptography. There is no need for you to release memory referenced by the returned pointer because it points to a static variable. The following fields of the IppLibraryVersion structure are available:
major |
is the major number of the current library version. |
minor |
is the minor number of the current library version. |
majorBuild |
is the number of builds for the (major.miror) version. |
build |
is the total number of Intel IPP builds. |
Name |
is the name of the current library version. |
Version |
is the version string. |
BuildDate |
is the actual build date |
For example, if the library version is "5.2 gold", library name is "ippcppxl.lib", and build date is "Nov 14 06", then the fields in this structure are set as follows:
major = 5, minor = 2, Name = "ippcppxl.lib", Version = "5.2 gold", BuildDate = "Nov 14 2006".
Example “Using the ippcpGetLibVersion Function” shows how to use the function ippcpGetLibVersion.
void libinfo(void) { const IppLibraryVersion* lib = ippcpGetLibVersion();
printf("%s %s %d.%d.%d.%d\n", lib->Name, lib->Version, lib->major, lib->minor, lib->majorBuild, lib->build);
}
Output:
ippcppxl.lib 5.2 gold 5.2.35.285
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.