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
char* FAR inet_ntoa(
[in] struct in_addr in
);
Parameters
[in] in
The address of a character string that represents the address in dotted-decimal notation.
Return Value
If the function succeeds, it returns the converted address as 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 |
|---|---|---|
|
wRTOS 1.0 SDK |
winsock2.h |
RttcpipApi.lib |