pub unsafe fn string_get_length_bounded( str: *const c_char, maxlen: usize, ) -> usize
Get the length of a null-terminated string with maximum length
This function is unsafe because it dereferences raw pointers.