Compare two strings using locale.
Compares the C string str1 to the C string str2, both interpreted appropriately according to the LC_COLLATE category of the C locale currently selected.
- Parameters
-
str1 | C string to be compared. |
str2 | C string to be compared. |
num | Maximum number of characters to compare. |
- Returns
- Returns an integral value indicating the relationship between the content of the memory blocks (<0: value in ptr1 was lower than in ptr2, 0: both are equals, >0: value in ptr2 was greater than in ptr2).