Path: utzoo!attcan!telly!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!caen!umich!sharkey!rjf001!amara!mcdaniel From: mcdaniel@adi.com (Tim McDaniel) Newsgroups: comp.lang.c Subject: Re: printf and scanf in IBMC on IBM 3090 Message-ID: Date: 5 Feb 91 19:54:25 GMT References: <1991Feb4.234251.14836@ms.uky.edu> Sender: news@adi.COM Organization: Applied Dynamics International, Inc.; Ann Arbor, Michigan, USA Lines: 18 In-reply-to: ghot@s.ms.uky.edu's message of 4 Feb 91 23:42:51 GMT ghot@s.ms.uky.edu (Allan Adler) notices that a printf prompt on his system does not come out until after the read, and wonders if ANSI C allows that. See the Frequently-Asked Questions list, question number 65. The full FAQ is posted at the beginning of each month, and an abbreviated version is posted in mid-month. E-mail me for a copy. (Also see questions 66 and 67 about the problems with using scanf for terminal input.) A brief answer: ANSI C allows it. The system in question uses the common mechanism of "line buffering", flushing the buffer at each newline. -- Tim McDaniel Applied Dynamics Int'l.; Ann Arbor, Michigan, USA Work phone: +1 313 973 1300 Home phone: +1 313 677 4386 Internet: mcdaniel@adi.com UUCP: {uunet,sharkey}!amara!mcdaniel