cpp/string/byte/memcmp

Reinterprets the objects pointed to by and  as arrays of  and compares the first  bytes of these arrays. The comparison is done lexicographically.

The sign of the result is the sign of the difference between the values of the first pair of bytes (both interpreted as ) that differ in the objects being compared.

Return value
Negative value if the first differing byte (reinterpreted as ) in is less than the corresponding byte in.

if all bytes of  and  are equal.

Positive value if the first differing byte in is greater than the corresponding byte in.