To make strcmp case-insensitive, use strcasecmp from #include <strings. h> . strcasecmp can be used in exactly the same way as strcmp. To make strncmp case-insensitive, use strncasecmp from #include <strings.
Read moreHow do I use ignore case?
You ignore case when you treat the data, not when you retrieve/store it . If you want to store everything in lowercase use String#toLowerCase, in uppercase use String#toUpperCase. Then when you have to actually treat it, you may use out of the bow methods, like String#equalsIgnoreCase(java.
Read more