pub unsafe extern "C" fn l2util_addr_from_str(
    str_: *const c_char,
    out: *mut u8
) -> size_t
Expand description

@brief Parses a string of colon-separated hexadecimals to a hardware address.

@details The input format must be like xx:xx:xx:xx where xx will be the bytes of @p addr in hexadecimal representation.

@pre (out != NULL) @pre @p out MUST have allocated at least @ref GNRC_NETIF_L2ADDR_MAXLEN bytes.

@param[in] str A string of colon-separated hexadecimals. @param[out] out The resulting hardware address. Must at least have @ref GNRC_NETIF_L2ADDR_MAXLEN bytes allocated.

@return Actual length of @p out on success. @return 0, on failure.