getchar()
Harry Protoolis - Sun EHQ
harry at matilda.UK.Sun.COM
Wed Mar 6 03:07:04 AEST 1991
Marc,
Your problem is that your system is line buffering input. (yes, even getchar()
does this).
Assuming that your are on a Unix system you can turn this off using
ioctl to turn off cbreak mode (read tty(4)) to your input device. If
you are running DOS I don't know, but there is certainly an equivalent.
Cheers
Harry Protoolis
Harry.Protoolis at UK.Sun.COM
More information about the Comp.lang.c
mailing list