KDK_FAN_GET_INFORMATION(3) Library Functions Manual NAME kdk_fan_get_information - SYNOPSIS #include extern char** kdk_fan_get_information(); Link with -lkyfan. Detailed Description The main function of the interface is to obtain the fan information. RETURN VALUE On success, returns a list of fan information of type char*, including name and speed, ending with a NULL string; Generated by alloc and needs to be recycled by kdk_fan_freeall On error, return NULL. EXAMPLES #include "libkyfan.h" #include #include int main() { char **fan = kdk_fan_get_information(); int index = 0; while (fan[index]) { printf("%s0, fan[index]); index++; } kdk_fan_freeall(fan); return 0; } CONFORMING TO These functions are as per the withdrawn POSIX.1e draft specification. The following functions are Linux extensions: kdk_fan_freeall(). SEE ALSO kdk_fan_freeall(3). Linux Programmer's Manual Fri Aug 25 2023 KDK_FAN_GET_INFORMATION(3)