- Subject: line buffered stdin
- From: Bastian Ruppert <ng@xxxxxxxx>
- Date: Mon, 11 Jan 2010 17:27:31 +0100
- List-id: <linux-c-programming.vger.kernel.org>
- User-agent: Thunderbird 2.0.0.23 (X11/20090817)
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux Assembler]
[Git]
[Kernel List]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[Yosemite Campsites]
[Yosemite News]
[GCC Help]