Embedded TCP/IP stack: fnet_mac_to_str

FNET

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.

Parameters
[in]addrMAC address.
[out]str_macPointer 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).
Returns
This function always returns the str_mac.
See also
fnet_str_to_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.


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