-
strupr function
i'm doing a project on the function strupr, its found on one of the borland compilers. it takes word(s) entered by the user in lowercase letters and switches it to uppercase. my question is, what's the purpose of the function? where can it come in use...
-
If you want to compare strings but don't care about their case, you can use strupr on both of them and then compare them.
-
One use might be in searching or sorting. You can look for just one "WORD", instead of "WORD", "word", "Word", etc.