Converts an IPv4 address into a string in Internet standard dotted-decimal format.
- Parameters
-
addr | Structure that represents an Internet address. |
res_str | Pointer 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.