Skip to main content

string_compare_bounded

Function string_compare_bounded 

Source
pub unsafe fn string_compare_bounded(
    str1: *const c_char,
    str2: *const c_char,
    num: usize,
) -> c_int
Expand description

Compare two strings up to n characters

ยงSafety

This function is unsafe because it dereferences raw pointers.