Re: scanf doubt



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"
.



Relevant Pages

  • Re: Questions about C1x
    ... extension, changing the implementation to return a string containing ... presented in the standard, and they're not what you think they are. ... You have invented out of thin air a rule that the inputs to asctime() ... , but it just doesn't exist in C99. ...
    (comp.std.c)
  • Re: // vs /*
    ... Is using // for a comment standard C? ... It was standardized in C99 although it was widely supported as a common ... extension before that time. ... C99 feature. ...
    (comp.lang.c)
  • Re: // vs /*
    ... Is using // for a comment standard C? ... It was standardized in C99 although it was widely supported as a common ... extension before that time. ... C99 feature. ...
    (comp.lang.c)
  • Re: Change the "Copy of" filename addition?
    ... > Keith Miller wrote: ... >>> configuration file to enable debugging and other settings. ... It would be super simple to append it to the extension. ...
    (microsoft.public.windowsxp.customize)
  • Re: Opening a zip file
    ... goto www.winzip.com to decompress your file ... Frank Kabel ... Keith wrote: ... > I have received a file with a zip extension. ...
    (microsoft.public.excel.newusers)