.TH "KDK_LOCATION_GET" 3 "Thu Sep 14 2023" "Linux Programmer's Manual" \" .SH NAME kdk_loaction_get - 获取本地地址信息 .SH SYNOPSIS .nf .B #include .sp .BI "extern char *kdk_loaction_get();" .sp Link with \fI\-lkylocation\fP. .SH "Detailed Description" The main function of the interface is to obtain local address information. .SH "RETURN VALUE" On success, returns the address information in JSON format of type char *. .PP On error, return .BR NULL. .SH EXAMPLES .EX #include "stdio.h" #include "libkylocation.h" int main() { printf("location: %s", kdk_loaction_get()); return 0; } .SH "CONFORMING TO" These functions are as per the withdrawn POSIX.1e draft specification.