Skip to main content

string_compare

Function string_compare 

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

Compare two null-terminated strings

ยงSafety

This function is unsafe because it dereferences raw pointers.