Compare two strings.
Compares the string str1 to the string str2.
- Parameters
-
str1 | A string to be compared. |
str2 | A string to be compared. |
- Returns
- Returns an integral value indicating the relationship between the strings. A zero value indicates that both strings are equal. A value greater than zero indicates that the first character that does not match has a greater value in str1 than in str2. A value less than zero indicates the opposite.
- Examples:
- ex_strcmp.nxc.