riot_sys

Function ipv4_addr_to_str

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

@brief Converts an IPv4 address to its string representation

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

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