Single char input using getchar()

Robert Perlberg perl at rdin.UUCP
Wed Jan 4 17:26:48 AEST 1984


WOOOOOOOOOOOOOOOOOOOOOOAAAAAAAAAAA!!!!!

There's nothing wrong with using getchar for single character
input.  The stdio package treats terminals differently than it
does other devices.  Terminal I/O will not be buffered by getchar
or putchar or any other stdio routine unless you request buffering
with setbuf().  The only buffering you have to worry about is
that controlled by ioctl.

Robert Perlberg
Resource Dynamics Inc.
New York
philabs!rdin!rdin2!perl



More information about the Comp.lang.c mailing list