in reply to Re^2: Testing whether a file handle is attached to STDOUT
in thread Testing whether a file handle is attached to STDOUT

In particular, Windows 2000, NT and 7 - can we rely on fileno(*STDOUT) always being 1?

Yes. It is a standard C thing, not OS dependant.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^3: Testing whether a file handle is attached to STDOUT