Function openthread_sys::otIp4CidrFromString

source ยท
pub unsafe extern "C" fn otIp4CidrFromString(
    aString: *const c_char,
    aCidr: *mut otIp4Cidr,
) -> otError
Expand description

Converts a human-readable IPv4 CIDR string into a binary representation.

@param[in] aString A pointer to a NULL-terminated string. @param[out] aCidr A pointer to an IPv4 CIDR.

@retval OT_ERROR_NONE Successfully parsed the string. @retval OT_ERROR_INVALID_ARGS Failed to parse the string.