KDK_BIOS_FREE(3) Library Functions Manual KDK_BIOS_FREE(3)

kdk_bios_free - 释放内存

#include <libkybios.h>

extern void kdk_bios_free(char *info);

Link with -lkyhw.

The main function of this interface is to release the string returned by the bios module interface.

The argument info is the return value of the kdk_bios_get_vendor or kdk_bios_get_version of the functions

No return value

#include "stdio.h"
#include "libkybios.h"
#include <stdlib.h>
int main()
{
    char *vendor = kdk_bios_get_vendor();
    char *version = kdk_bios_get_version();
    printf("vendor: %s", vendor);
    printf("version: %s",version);
    kdk_bios_free(vendor);
    kdk_bios_free(version);
    return 0;
}

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

kdk_bios_get_version(3). and kdk_bios_get_vendor(3).

Thu Aug 14 2023 Linux Programmer's Manual