TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: LARRY OLSON 72227,3467 (X)
from: Bill Dickhaus 70325,523
date: 1993-03-05 05:25:29
subject: #17578-#C help

#: 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.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.