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

David Filion filioda at videotron.com
Fri Aug 31 09:00:51 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?  All the
file status functions I've come across require an open file.
(I remember reading how to somewhere but I can't remember where.)

Thanx.

ps. Sorry if your getting this twice.  My first post did not seem to get
processed.





More information about the linuxCprogramming mailing list