c/string/byte/strcmp

Compares two null-terminated byte strings lexicographically.

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

The behavior is undefined if or  are not pointers to null-terminated byte strings.

Return value
Negative value if appears before  in lexicographical order.

Zero if and  compare equal.

Positive value if appears after  in lexicographical order.