From: Erik Max Francis Newsgroups: comp.lang.c,comp.os.msdos.djgpp Subject: Re: A funny thing happened! Date: Tue, 19 Aug 1997 08:46:19 -0700 Organization: Alcyone Systems Lines: 25 Message-ID: <33F9BFCB.4C7F628A@alcyone.com> References: <33EE4447 DOT 24E09407 AT nospam DOT net> <871305859snz AT genesis DOT demon DOT co DOT uk> <33F0D3EA DOT 528A AT cs DOT com> <33F13D7F DOT 423B9280 AT alcyone DOT com> <871577149snz AT genesis DOT demon DOT co DOT uk> NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Lawrence Kirby wrote: > 7.9.3 does *not* guarantee that stdout's buffer is flushed before a > character is read: > > 1. it doesn't guarantee that stdout refers to an interactive device > > 2. even if it does the stream can be line buffered and there is no > new-line character being output above. That's not the way I read it: "Furthermore, characters are intended to be transmitted as a block to the host environment when a buffer is filled, when inputi s requested on an unbuffered stream, or when input is requested on a line buffered stream that requires the transmission of characters from the host environment" (ANSI C 7.9.3). -- Erik Max Francis, &tSftDotIotE / email / mailto:max AT alcyone DOT com Alcyone Systems / web / http://www.alcyone.com/max/ San Jose, California, United States / icbm / 37 20 07 N 121 53 38 W \ "Love is not love which alters / when it alteration finds." / William Shakespeare, _Sonnets_, 116