line buffered stdin

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

 



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

[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux