#: 17611 S12/OS9/68000 (OSK)
05-Mar-93 05:25:29
Sb: #17578-#C help
Fm: Bill Dickhaus 70325,523
To: LARRY OLSON 72227,3467 (X)
Larry,
Pete's right, its better to use fflush(stdout) than setbuf(), since as far as I
know, there is no way to turn buffer back on, once its turned off. The other
option that Mike suggested can also work. Just take my example and replace the
puts(mouse_pos) with write(1,mouse_pos,6). Mixing low level I/O with buffered
I/O works fine, as long as you remember to use fflush() after any buffered I/O,
like printf, puts, etc, otherwise you can get some interesting results!
-Bill-
There is 1 Reply.
|