[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #14104] sscanf returns number of matches instead of
From: |
Darcy Watkins |
Subject: |
[avr-libc-dev] [bug #14104] sscanf returns number of matches instead of number of assignments |
Date: |
Fri, 12 Aug 2005 14:23:04 +0000 |
User-agent: |
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705; .NET CLR 1.1.4322) |
URL:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=14104>
Summary: sscanf returns number of matches instead of number
of assignments
Project: AVR C Runtime Library
Submitted by: dwatkins
Submitted on: Fri 08/12/05 at 14:23
Category: Library
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Percent Complete: 0%
Assigned to: None
Originator Email: address@hidden
Open/Closed: Open
_______________________________________________________
Details:
>From my email to [avr-libc-dev] Aug 11/05...
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.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=14104>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-libc-dev] [bug #14104] sscanf returns number of matches instead of number of assignments,
Darcy Watkins <=