[Coco] Unbuffered file pointers in C (Was: INKEY equivalent for C?)

tim lindner tlindner at ix.netcom.com
Mon Dec 26 11:54:55 EST 2005


Bob Devries <bdevries at gil.com.au> wrote:

> stdout->_flag |= _UNBUF;
> stdin->_flag |= _UNBUF;

To set the mode for an I/O stream to be unbuffered, I suggest issuing
these commands before any I/O is attempted:

setbuf( stdout, 0 );
setbuf( stdin, 0 );

-- 
tim lindner
tlindner at ix.netcom.com                                            Bright



More information about the Coco mailing list