Skip to main content

string_get_length_bounded

Function string_get_length_bounded 

Source
pub unsafe fn string_get_length_bounded(
    str: *const c_char,
    maxlen: usize,
) -> usize
Expand description

Get the length of a null-terminated string with maximum length

ยงSafety

This function is unsafe because it dereferences raw pointers.