Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.7.0.10 $; site uiucdcs Path: utzoo!watmath!clyde!cbosgd!ihnp4!inuxc!pur-ee!uiucdcs!mcewan From: mcewan@uiucdcs.CS.UIUC.EDU Newsgroups: net.micro.atari16 Subject: Re: --- Megamax Printf bug --- Message-ID: <177500005@uiucdcs> Date: Sun, 30-Mar-86 13:22:00 EST Article-I.D.: uiucdcs.177500005 Posted: Sun Mar 30 13:22:00 1986 Date-Received: Wed, 2-Apr-86 00:43:04 EST Lines: 17 Nf-ID: #R:<8603270054.AA00660@ucbvax.berke:-40:uiucdcs:177500005:000:714 Nf-From: uiucdcs.CS.UIUC.EDU!mcewan Mar 30 12:22:00 1986 > Despite Jwahar R. Bammi's rebuttal, the problem described (no printing > of statements not ending in '\n' until explicit buffer flush) is a bug. > It is possible to use fflush(stdout) to get around it, as he describes, > but that is not how most standard library printf()s require things. Just because MOST standard library printf's do not buffer output to the terminal does not mean that that is the only correct way. This is implementation-dependent, and anyone who wants to write portatble code should use fflush, even if it is not required by the library they are using. Scott McEwan {ihnp4,pur-ee}!uiucdcs!mcewan Green s/m watchlizard seeks s/f/wl - object: companionship. Reply Box 23, Cynosure.