Function core::slice::cmp::memcmp

source ·
unsafe extern "C" fn memcmp(
    s1: *const u8,
    s2: *const u8,
    n: usize
) -> c_int
Expand description

Calls implementation provided memcmp.

Interprets the data as u8.

Returns 0 for equal, < 0 for less than and > 0 for greater than.