Embedded TCP/IP stack
4.7.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.
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). |
res_str
.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
.