Embedded TCP/IP stack
4.7.0
|
fnet_char_t* fnet_mac_to_str | ( | const fnet_mac_addr_t | addr, |
fnet_char_t * | str_mac | ||
) |
Converts a 6 byte MAC address into a null terminated string.
[in] | addr | MAC address. |
[out] | str_mac | Pointer to a character buffer will contain the resulting text address in standard ":" notation. The str_mac buffer must be at least 18 bytes long (FNET_MAC_ADDR_STR_SIZE). |
str_mac
.This function takes an MAC-48 address, specified by the addr
parameter, and returns a null-terminated ASCII string, represented by six groups of two hexadecimal digits, separated by colons (:), in transmission order (e.g. 01:23:45:67:89:ab ), into buffer pointed to by the str_mac
.