Number of characters buffered by stdio detection.
Diomidis Spinellis
diomidis at ecrcvax.UUCP
Wed Apr 26 06:11:40 AEST 1989
I want to use select(2) on an stdio buffered stream. The problem
is that before calling select I need to check if there are any
characters in the buffer. I have not found any function that
returns such a value, so I use _iob(x)->_cnt. This is not part
of the documented stdio interfaces and thus non-portable. Is there
a better way to do this?
--
Diomidis Spinellis
European Computer Industry Research Centre
More information about the Comp.lang.c
mailing list