Write a function that allows case-insensitive comparison of two strings. the return value should be analogous to that from strcmp: s1 < s2 return something < 0 s1 == s2 return something == 0 s1 > s2 return something > 0 (these return values can be short integers.) just remember that the comparisons are to be done in a manner that ignores the caseof the letters in the strings! but also note that the strings should not be altered at all. don't change the two string arguments before or during the call. don't make copies and change the copies. all of this is terribly wasteful and/or destructive of data. place your new function in a library (strextra?) and call it something useful (strcmp_ncase?). write a driver program to test your function.



Answer :

Other Questions