[LCP]How to tell if a file is open?

David Filion filioda at videotron.com
Fri Aug 31 08:52:46 UTC 2001



I'm writing a routine that need to check if the stream it is writing to is open
before it writes to it.  for example,  before I try to write and error messge to
stdout, I want to make sure it is still open.  How can I do this?  (I remember
reading how to somewhere but I can't remember where.)

Thanx.





More information about the linuxCprogramming mailing list