Article View: comp.std.c
Article #2090Re: is fflush(stdin) conformant???
From: Norman Diamond
Date: Thu, 05 Nov 1992 01:54
Date: Thu, 05 Nov 1992 01:54
15 lines
1378 bytes
1378 bytes
In article <MGK.92Nov2131855@cedar.sql.sybase.com> mgk@sql.sybase.com (Michael Keirnan aka Joe Cool) writes: >the instructor has advised flushing stdin in conjunction with using scanf() >to "flush the unwanted newline." This works on some implementations. Ask the student if the course is supposed to teach an implementation-dependent style. If it's supposed to teach ANSI C, the student should demand a refund of the tuition. >So what sayeth the gospel on the subject? Undefined. (But implementations are allowed to define it if they wish.) -- Norman Diamond diamond@jit081.enet.dec.com If this were the company's opinion, I wouldn't be allowed to post it. "It's been a lovely recession."
Technical Details
Message-ID:
<Bx7zzF.G8H@jrd.dec.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!wupost!darwin.sura.net!haven.umd.edu!decuac!pa.dec.com!nntpd2.cxo.dec.com!nntpd.lkg.dec.com!e2big.mko.dec.com!jrdzzz.jrd.dec.com!jit345.bad.jit.dec.com!diamondReferences:
<MGK.92Nov2131855@cedar.sql.sybase.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!wupost!darwin.sura.net!haven.umd.edu!decuac!pa.dec.com!nntpd2.cxo.dec.com!nntpd.lkg.dec.com!e2big.mko.dec.com!jrdzzz.jrd.dec.com!jit345.bad.jit.dec.com!diamond From: diamond@jit345.bad.jit.dec.com (Norman Diamond) Subject: Re: is fflush(stdin) conformant??? Message-ID: <Bx7zzF.G8H@jrd.dec.com> Sender: usenet@jrd.dec.com (USENET News System) Nntp-Posting-Host: jit345 Reply-To: diamond@jit.dec.com (Norman Diamond) Organization: Digital Equipment Corporation Japan , Tokyo References: <MGK.92Nov2131855@cedar.sql.sybase.com> Date: Thu, 5 Nov 1992 01:54:51 GMT Lines: 15