Skip to main content

compare_bytes

Function compare_bytes 

Source
pub unsafe fn compare_bytes(a: *const u8, b: *const u8, n: usize) -> i32
Expand description

Lexicographically compares n bytes at a and b.

ยงSafety

  • a and b must each be valid for reads of n bytes.