Function libzt::zts_inet_pton[][src]

pub unsafe extern "C" fn zts_inet_pton(
    family: c_int,
    src: *const c_char,
    dst: *mut c_void
) -> c_int
Expand description

Convert C-string IPv4 and IPv6 addresses to binary form.

@param family Address family: ZTS_AF_INET or ZTS_AF_INET6 @param src Pointer to source character array @param dst Pointer to destination address structure @return return 1 on success. 0 or -1 on failure. (Does not follow regular zts_* conventions)