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(
struct in_addr in
);
Parameters
in
Address of a character string representing the address in dotted-decimal notation.
Return Value
The converted address as a u32 in network byte order if the function succeeds, 0xFFFFFFFF if the string does not represent a valid IPv4 address in dotted-decimal notation.
Requirements
Minimum Supported Version | RTX64 2013 |
Header | Winsock2.h |
Library | RtTcpip.lib |