Michael C. Toren on Fri, 11 Apr 2003 16:10:37 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Linux FIFOs


> > Because there is no such thing as an EOF character on unix. There is
> > an EOF result code. This is why getc returns an int and not a char.
> 
> Writing a literal ^D should do the trick, though.

Only if the file descriptor is a TTY, and the terminal driver has been
configured to use an EOF character of ^D by tcsetattr(3).  It's unlikely
to work in this particular case.

-mct
_________________________________________________________________________
Philadelphia Linux Users Group        --       http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug