Function nrfxlib_sys::nrf_inet_ntop [−][src]
pub unsafe extern "C" fn nrf_inet_ntop(
family: c_int,
p_src: *const c_void,
p_dst: *mut c_char,
size: nrf_socklen_t
) -> *const c_char
Function for converting an IP address to a human-readable string form.
s This function will decode the IP bytes from network byte order and convert it to a string form of the address.
@note Currently not supporting mixed IPv4 and IPv6 format strings.
family
- Address family. NRF_AF_INET or NRF_AF_INET6.p_src
- Pointer to a struct nrf_in_addr or nrf_in6_addr containing the address to convert.p_dst
- Pointer to a buffer where the string representation of the address will be stored.size
- Size of the provided buffer in p_dst.
Returns Pointer to p_dst on success, NULL and errno set in case of error.