|
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
Address of a character string representing the address in dotted-decimal notation.
Return Values
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.