Embedded TCP/IP stack  4.7.0

◆ fnet_inet_aton()

fnet_return_t fnet_inet_aton ( fnet_char_t cp,
struct fnet_in_addr addr 
)

Converts the string in the standard dotted-decimal notation to an integer value, suitable for use as an IPv4 address.

Parameters
cpNull-terminated character string representing a number expressed in the Internet standard "." (dotted) notation.
addrPointer 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.

© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net