Re: scanf doubt
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Thu, 14 Aug 2008 10:16:44 -0700
vippstar@xxxxxxxxx writes:
On Aug 14, 3:06 am, Keith Thompson <ks...@xxxxxxx> wrote:
Keith, this is going nowhere, you're right, I'm right, I probably
don't phrase (?) things correctly.
I'm terribly sorry, but the fact is that I'm right and you're wrong.
Not entirely wrong, just in one statement that you made. In fact I
agree with *most* of what you wrote, and with most of what you write
in general.
Windows apparently defines the behavior of fflush(stdin). You stated,
clearly and unambigously, that this is not an extension. I say that
it is an extension, in the sense of C99 4p6.
This isn't just poor phrasing, it's a factual error on your part
regarding something that's covered by the ISO C standard.
We're in complete agreement that the behavior of fflush(stdin) is not
defined by the C standard, so we needn't revisit that point. Nor do I
advocate using it.
Now it's possible that you're right and I'm wrong on this point. If
so, I'd be fascinated to discover why. C99 4p6 isn't entirely clear
on what an "extension" is; the example it offers (of additional
library functions) doesn't match this particular case.
Can you explain *why* you think defining the behavior of fflush(stdin)
isn't an extension?
--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
.
- Follow-Ups:
- Re: scanf doubt
- From: vippstar
- Re: scanf doubt
- References:
- scanf doubt
- From: deepak
- Re: scanf doubt
- From: Daniel Molina Wegener
- Re: scanf doubt
- From: Jens Thoms Toerring
- Re: scanf doubt
- From: vippstar
- Re: scanf doubt
- From: Keith Thompson
- Re: scanf doubt
- From: vippstar
- Re: scanf doubt
- From: Keith Thompson
- Re: scanf doubt
- From: vippstar
- Re: scanf doubt
- From: Keith Thompson
- Re: scanf doubt
- From: vippstar
- scanf doubt
- Prev by Date: Re: catching exit
- Next by Date: Re: catching exit
- Previous by thread: Re: scanf doubt
- Next by thread: Re: scanf doubt
- Index(es):
Relevant Pages
|