kdk_loaction_get(3)

kdk_loaction_get3

获取本地地址信息

Usage

#include <libkylocation.h>

extern char *kdk_loaction_get();

Link with -lkylocation.

Detailed Description

The main function of the interface is to obtain local address information.

Return value

On success, returns the address information in JSON format of type char *.

On error, return NULL.

Examples

#include "stdio.h"
#include "libkylocation.h"
int main()
{
    printf("location: %s", kdk_loaction_get());
    return 0;
}

Conforming to

These functions are as per the withdrawn POSIX.1e draft specification.

From libkysdk-system 3.0.1.4-1 in Arch Linux 2026-11-07. Parsed by carta from the page's man source.