Embedded TCP/IP stack: fnet_inet_ntoa

FNET

Embedded TCP/IP stack  4.1.0
fnet_char_t* fnet_inet_ntoa ( struct fnet_in_addr  addr,
fnet_char_t res_str 
)

Converts an IPv4 address into a string in Internet standard dotted-decimal format.

Parameters
addrStructure that represents an Internet address.
res_strPointer to a character buffer will contain the resulting text address in standard "." notation.
The res_str buffer must be at least 16 bytes long (FNET_IP4_ADDR_STR_SIZE).
Returns
This function always returns the res_str.
See also
fnet_inet_aton(), fnet_inet_ntop(), fnet_inet_pton()

This function takes an Internet address structure, specified by the addr parameter, and returns a null-terminated ASCII string, representing the address in "." (dot) notation as in "a.b.c.d" into buffer pointed to by the res_str.

Note
fnet_inet_ntop() extends the fnet_inet_ntoa() function to support multiple address families.
fnet_inet_ntoa() is now considered to be deprecated.

© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net