Re: how to check the scanf function if it will read more than one number



On 2006-01-03, Chuck F. <cbfalconer@xxxxxxxxx> wrote:
> Richard Heathfield wrote:
>> Chuck F. said:
>>> Jordan Abel wrote:
>>>> On 2006-01-03, Chuck F. <cbfalconer@xxxxxxxxx> wrote:
>>>>
>>>>> No, it doesn't handle EOF. However, if you have flushln
>>>>> available you can write:
>>>>>
>>>>> #define flushstdin flushln(stdin)
>>>>
>>>> I've never heard of flushln - what systems does it exist on?
>>>>
>>>>
>>>>> although I don't know why you would bother.
>>>
>>> All you had to do was read this thread. I have published at
>>> least two realizations of flushln in it.
>>
>> Usenet is an asynchronous medium. Please don't assume that
>> everybody has been able to read all previous articles in a
>> thread. It is generally easy to skip around this problem; for
>> example, you could have said:
>>
>> "However, if you use flushln() available on your system (source
>> for the fflushln function is provided upthread) you can
>> write..."
>>
> He's even more careless than that. One of the flushln
> implementations was quoted in the article to which he replied, and
> he snipped it! So there is no doubt he saw it.
>
> Maybe he is one of the Wikipedia editors who are amusing you?

I didn't bother reading all the quoted text, and the text i did read
[and quote] said nothing to imply that it was a function you had written
in an earlier message - "if ___ is available on your system" implies (to
me) that it's a non-universally-available extension.
.