inet_ntoa
inet_ntoa converts an IPv4 address stored in network byte order in the field of the struct in_addr input parameter to the dotted decimal string representation, for example, “192.168.124.3” and returns the result as a character pointer.
Syntax
Copy
char* FAR inet_ntoa(
struct in_addr in
);
Parameters
in
A struct in_addr whose s_addr field is the address to be converted into network byte order.
Return Value
The function returns the address of a static char buffer containing the converted address.
Requirements
Minimum supported version | Header | Library |
---|---|---|
eRTOS 1.0 SDK |
Winsock2.h | RtTcpipApi.lib |