TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: Dan Charrois 70721,1506 (X)
from: Pete Lyall 76703,4230
date: 1990-12-13 09:09:16
subject: #8702-#C and buffers

#: 8709 S3/Languages
    13-Dec-90  09:09:16
Sb: #8702-#C and buffers
Fm: Pete Lyall 76703,4230
To: Dan Charrois 70721,1506 (X)

Dan -

If you want to avoid the "\n", try tacking an:

     fflush(stdout);

This tells the buffering logic to toss the buffer contents even though an end
of line (typical flag for dumping the buffer) hasn't been seen. If you don't
mind losing the speed advantage of buffereing, you could just unbuffer the
stream by:

   setbuf(stdout, NULL);

Pete



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™.