Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!rochester!udel!mmdf From: Leisner.Henr@xerox.com (Marty) Newsgroups: comp.os.minix Subject: flushing stdandard io streams Message-ID: <9809@louie.udel.EDU> Date: 28 Feb 89 15:08:27 GMT Sender: mmdf@udel.EDU Lines: 25 I'm using the Minix standard I/O library on Ms/Dos and the stdout stream doesn't automatically get flushed on a newline. There are these perprintf macros/flags that I've never seen on other Unix/C implementations which flush every fprintf. But when the application software is using various combinations of fputs/fputc, seems the output stream won't get flushed unless the program specifically requests it. I've been looking at various reference materials (Harbisan & Steele, DPANS, K&R 2nd Edition) and I've yet to stumble across anything that defines the flushing algorithm. Did I miss it? I believe accepted practice is to flush when encountering a newline character or the buffer files up. So the perprintf stuff may be done away with and fputc check for newline characters. marty ARPA: leisner.henr@xerox.com GV: leisner.henr NS: martin leisner:wbst139:xerox UUCP: hplabs!arisia!leisner