On Wed, Jul 06, 2005 at 07:56:17AM +0200, Michael Kerrisk wrote:
> tags 317037 fixed-upstream
> tags 317037 pending
> thanks
> 
> > I quote from the RETURN VALUE section of sscanf(3):
> > 
> >   The value EOF is returned if an input failure occurs before any
> >   conversion such as an end-of-file occurs.
> > 
> > This seems to imply that "end-of-file" is a "conversion", which I
> > think must be unintentional.  I suggest the following replacement
> > text (which is probably what is intended):
> > 
> >   The value EOF is returned if an input failure (such as end-of-file)
> >   occurs before any conversion is assigned.
> 
> Justin,
> 
> Thanks.
> 
> I agree.  The text is confusing.  I opted for a more extensive 
> description:
> 
>        The value EOF is returned if the end of  input
>        is reached before the first successful conver-
>        sion  or  matching  failure.   EOF   is   also
>        returned if a read error occurs, in which case
>        the error indicator for the stream  (see  fer-
>        ror(3))  is set, and errno is set indicate the
>        error.
What is a matching failure, anyway?
Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to