Nikos Chantziaras wrote On 08/01/07 09:50,: Hello. > Is there a way to check if the current process has an stdin handle? In the win32 API, one can do: > _eof(_fileno(stdin)) > Crucial here is that the above doesn't block. Is there a standard way to do the same without resorting to OS-specific API calls? What is a "stdin handle," and ...