lexicographically compare strings c