pub unsafe extern "C" fn aws_secure_strlen(
    str_: *const c_char,
    max_read_len: usize,
    str_len: *mut usize
) -> c_int
Expand description

Computes the length of a c string in bytes assuming the character set is either ASCII or UTF-8. If no NULL character is found within max_read_len of str, AWS_ERROR_C_STRING_BUFFER_NOT_NULL_TERMINATED is raised. Otherwise, str_len will contain the string length minus the NULL character, and AWS_OP_SUCCESS will be returned.