riot_sys

Function ipv6_addr_from_str

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

@brief Converts an IPv6 address string representation to a byte-represented IPv6 address

@see RFC 5952

@param[out] result The resulting byte representation @param[in] addr An IPv6 address string representation

@return @p result, on success @return NULL, if @p addr was malformed @return NULL, if @p result or @p addr was NULL