linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* line buffered stdin
@ 2010-01-11 16:27 Bastian Ruppert
  2010-01-11 16:36 ` Manish Katiyar
  2010-01-11 20:51 ` Glynn Clements
  0 siblings, 2 replies; 4+ messages in thread
From: Bastian Ruppert @ 2010-01-11 16:27 UTC (permalink / raw)
  To: linux-c-programming

Hello,

under Linux stdin is line buffered, that means you can read one byte with
following statement:

read(0,&myvar,1);

You get the byte after typing one or more chars AND return.

But i need this function to return after every char entered in stdin.

Is there a function that reads stdin without line buffering?

Is it possible to disable the linebuffer or to reduce the buffersize to one?
Does this kind of manupilation have consequences for the hole system or 
just for
the app
doing this?

Any Ideas are very welcome,
thank you.

Regards
Bastian.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-11 20:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-11 16:27 line buffered stdin Bastian Ruppert
2010-01-11 16:36 ` Manish Katiyar
2010-01-11 19:09   ` ern0
2010-01-11 20:51 ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).