[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] sscanf
From: |
Darcy Watkins |
Subject: |
[avr-libc-dev] sscanf |
Date: |
Thu, 11 Aug 2005 15:56:24 -0700 |
Hi,
r = sscanf(response, "HTTP/1.%*d %03d", &ret);
returns 2 when parsing "HTTP/1.1 234" when it should return 1
The return value should be the number of fields assigned (and not count
those with assignment suppressed).
This behaviour is observed in both the minimalist and floating scanf
libraries.
Regards,
Darcy
--------------------------------------------------------------
Darcy L. Watkins email: address@hidden
Senior Software Developer++ phone: (604) 455-2000
TASC Systems, Inc. fax: (604) 888-2712
9415 - 202 Street, web: http://www.tascsystems.com
Langley B.C. Canada V1M 4B5
--------------------------------------------------------------