[En-Nut-Discussion] How much in input buffer?

Harald Kipp harald.kipp at egnite.de
Fri Jun 24 16:21:04 CEST 2005


Quick answer without warranty. One of my apps contains

   _filelength (_fileno (tcpstream))

Hopefully

   _filelength (_fileno (stdin))

will work too.

Harald

At 16:11 24.06.2005 +0200, you wrote:
>Hello again
>
>I'm trying to figure out how to check how much unread data is in the 
>buffer for a stream.
>
>On a Solaris machine you can find it in e.g. stdin->_cnt i think, but this 
>does not seem to be defined in Nut/OS's FILE struct...
>
>mvh Arnfinn




More information about the En-Nut-Discussion mailing list