bugAVR C Runtime Library - Bugs: bug #14104, sscanf returns number of matches...

 
 

bug #14104: sscanf returns number of matches instead of number of assignments

Submitted by:  Darcy Watkins <dwatkins>
Submitted on:  Fri 12 Aug 2005 02:23:03 PM UTC  
 
Category: LibrarySeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPercent Complete: 0%
Assigned to: Joerg Wunsch <joerg_wunsch>Open/Closed: Closed
Release: NoneFixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 09 Nov 2005 10:01:59 PM UTC, comment #1:

Fixed in both, HEAD of CVS and the 1.2 branch.

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Fri 12 Aug 2005 02:23:03 PM UTC, original submission:

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.

Darcy Watkins <dwatkins>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 09 Nov 2005 10:01:59 PM UTCjoerg_wunschStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Tue 06 Sep 2005 09:14:32 PM UTCjoerg_wunschAssigned toNone=>joerg_wunsch

Back to the top


Powered by Savane 3.1-cleanup1