Re: Scanf bug

2004-10-02 Thread Igor Pechtchanski
On Fri, 1 Oct 2004, Brian Dessent wrote: > Ben Wing wrote: > > > > Somehow or other, sscanf() has gotten messed up in recent Cygwin > > installations. > > I believe this probably belongs on the newlib list, since Cygwin uses > newlib for libc. CGF already forwarded this report there. > That said

Re: Scanf bug

2004-10-01 Thread Brian Dessent
Ben Wing wrote: > > Somehow or other, sscanf() has gotten messed up in recent Cygwin > installations. I believe this probably belongs on the newlib list, since Cygwin uses newlib for libc. That said, it looks like the following could be your culpret... Or at least, it's the only scanf-related ne

Scanf bug

2004-10-01 Thread Ben Wing
Somehow or other, sscanf() has gotten messed up in recent Cygwin installations. Test program, with output: /xemacs/test 2391% cat testscanf.c int main (int argc, char **argv) { int ret, cp1, cp2, endcount; char *p = "0x7d 0x000E "; ret = sscanf (p, "%i %i%n", &cp1, &cp2, &endcount); pr