Converts the string in the standard dotted-decimal notation to an integer value, suitable for use as an IPv4 address.
- Parameters
-
cp | Null-terminated character string representing a number expressed in the Internet standard "." (dotted) notation. |
addr | Pointer to an integer will contain a suitable binary representation of the Internet address cp . |
- Returns
- This function returns:
- FNET_OK if no error occurs.
- FNET_ERR if the string in the
cp
parameter does not contain a legitimate Internet address.
- See also
- fnet_inet_aton(), fnet_inet_ntop(), fnet_inet_pton()
This function interprets the character string specified by the cp
parameter. This string represents a numeric Internet address expressed in the Internet standard "." notation. The value returned, pointed to by the addr
, is a number suitable for use as an Internet address.
- Note
- fnet_inet_pton() extends the fnet_inet_aton() function to support multiple address families.
fnet_inet_aton() is now considered to be deprecated.