Mail Archives: djgpp-workers/2003/11/16/14:58:33
Hello.
ams AT ludd DOT luth DOT se wrote:
>
> According to Richard Dawe:
[snip]
> > +sscanf_testcase_t sscanf_testcases[] = {
> > + /* No assignment */
> > + { "", "%*[0123456789]%*c", EOF, "", "" },
> > + { "X", "%*[0123456789]%*c", 0, "", "" },
> > + { "1", "%*[0123456789]%*c", EOF, "", "" },
> > + { "1X2", "%*[0123456789]%*[0123456789]", 1, "", "" },
> > + { "1,2", "%*[0123456789],%*[0123456789]", 2, "", "" },
>
> If I'm not mistaken the last two lines are coded to check that
> sscanf() returns 1 and 2. That's wrong. There were no
> assignments. Thus sscanf() should return 0.
[snip]
Yes, you are right. I'll see if I can write a new patch next weekend.
Just as well I didn't commit that patch! ;) Thanks for reviewing.
Bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
"You can't evaluate a man by logic alone." -- McCoy, "I, Mudd", Star Trek
- Raw text -