inet_addr
inet_addr converts an IPv4 address in dotted-decimal notation, for instance “192.168.124.1”, to a numerical address in network byte order.
Syntax
Copy
char* FAR inet_ntoa(
struct in_addr in
);
Parameters
in
An address of a character string representing the address in dotted-decimal notation.
Return Value
If the function succeeds, the converted address is a u32 in network byte order. If the string does not represent a valid IPv4 address in dotted-decimal notation, it returns 0xFFFFFFFF.
Requirements
Minimum supported version | Header | Library |
---|---|---|
eRTOS 1.0 SDK |
Winsock2.h | RtTcpipApi.lib |