Check for Standard Input when redirected from a file

Check for Standard Input when redirected from a file

I'm looking for a way to check for standard input whether keyed in or
re-directed from a file. PEEKCHARQQ seems not to notice redirected input.
On UNIX we used a C function which set a time-delayed alarm interrupt,
then tried reading a character from stdin within that time-delay.
There is a C function PeekConsoleInput which may do the job but for the wrong reasons, i.e. input re-direction, I think, causes an error return.

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.