riot_sys::bindgen

Function ipv6_addr_to_str

Source
pub unsafe extern "C" fn ipv6_addr_to_str(
    result: *mut c_char,
    addr: *const ipv6_addr_t,
    result_len: u8,
) -> *mut c_char
Expand description

@brief Converts an IPv6 address to its string representation

@see RFC 5952

@param[out] result The resulting string representation of at least @ref IPV6_ADDR_MAX_STR_LEN @param[in] addr An IPv6 address @param[in] result_len Length of @p result

@return @p result, on success @return NULL, if @p result_len was lesser than IPV6_ADDR_MAX_STR_LEN @return NULL, if @p result or @p addr was NULL