subject

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.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:40
It is vital to research each of the services you plan to disable before implementing any change, especially on critical machines such as the: a. servers in the test environment. b. domain controller and other infrastructure servers. c. desktops that have previously been attacked. d. desktops used by upper-level management.
Answers: 2
question
Computers and Technology, 22.06.2019 10:30
How can a user open a blank presentation? 1.on the file menu, click new, and then click recent templates 2.on the file menu, click new, and then click blank presentation 3. on the view menu, click templates, and then click recent templates 4. on the view menu, click samples, and then click blank presentation
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
Jamie has to enter the names, employee id’s, and income of a group of employees into a worksheet. which option will jamie use to describe the data
Answers: 3
question
Computers and Technology, 24.06.2019 03:30
The footer area of a web page generally houses which website feature? terms of use web page content business name or title menu headings
Answers: 1
You know the right answer?
Write a function that allows case-insensitive comparison of two strings. The return value should be...
Questions
question
Chemistry, 27.01.2021 01:00
question
Biology, 27.01.2021 01:00
Questions on the website: 13722367