printf and scanf in IBMC on IBM 3090

Tim McDaniel mcdaniel at adi.com
Wed Feb 6 06:54:25 AEST 1991


ghot at 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 at adi.com                UUCP: {uunet,sharkey}!amara!mcdaniel



More information about the Comp.lang.c mailing list