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