OK, not-so-hypothetical here:
Say I had a input that, the majority of the time, expected an integer value. But, there is a single case where a char would be acceptable (ie instead of entering an integer, you'd press Q to enter a quit function).
Is there a nice and clean way of doing this? I know scanf() wasn't designed to do this, and I'm stumped as to what other *scan*() function would do this.
Thanks in Advance,
kirby1024