Originally Posted by
grumpy
Indeed. kbhit() is a function that accepts no arguments, and returns a value. It certainly does not have a mode to tell it to return only uppercase letters. isupper(), on the other hand, accepts a single argument, and returns an indication of if that argument is uppercase. Logically, those two functions can be used together somehow.
Note: kbhit() is also not standard C, but that's another story. There are ways to do what you want without using goto. Avoiding use of goto is often a good idea.