Skip to main content

strcmp

Function strcmp 

Source
pub fn strcmp(a: &[u8], b: &[u8]) -> i64
Expand description

PHP strcmp: the byte difference at the first mismatch ("a" vs "c" is -2), else -1, 0 or 1 by length.