KDK_FAN_FREEALL(3) Library Functions Manual KDK_FAN_FREEALL(3)

kdk_fan_freeall - 用于回收字符串列表

#include <libkyfan.h>

extern inline void kdk_fan_freeall(char **ptr);

Link with -lkyfan.

The main function of the interface is to recycle a list of strings of type char **.

The argument ptr is a list of strings of type char **.

No return value

#include "libkyfan.h"
#include <stdio.h>
#include <stdlib.h>
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;
}

These functions are as per the withdrawn POSIX.1e draft specification. The following functions are Linux extensions: kdk_fan_get_information().

kdk_fan_get_information(3).

Fri Aug 25 2023 Linux Programmer's Manual