if (strcmp(str1, str2) < 0) { /* is str1 < str2 */ /* do something */ }
s1[i+1]
s2[i+1]
s1 = "abca"
s2 = "abcd"
s1 < s2
This follows the ascii character set.
wood