KFFTGetVersion
Obtain the FFT version information.
Interface Definition
int KFFTGetVersion(KFFTVersion*ver)
Parameters
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
ver |
Product information structure. |
The value cannot be NULL. |
Output |
Return Value
- Success: The value 1 is returned.
- Failure: The value 0 is returned.
Example
#include <stdio.h>
#include "kfft.h"
int main()
{
KFFTVersion ver;
int ret = KFFTGetVersion(&ver);
if (ret == 1) {
printf("\nFFT\n");
printf("Product Name: %s\n", ver.productName);
printf("Product Version: %s\n", ver.productVersion);
printf("Component Name: %s\n", ver.componentName);
printf("Component Version: %s\n", ver.componentVersion);
printf("Component AppendInfo: %s\n", ver.componentAppendInfo);
printf("Software Name: %s\n", ver.softwareName);
printf("Software Version: %s\n", ver.softwareVersion);
}
return 0;
}
Output:
FFT Product Name: Kunpeng Boostkit Product Version: 23.0.RC2 Component Name: BoostKit-kml Component Version: 1.8.0 Component AppendInfo: gcc Software Name: boostkit-kml-fft Software Version: 1.8.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