bugAVR C Runtime Library - Bugs: bug #24207, Example in inttypes.h is wrong

 
 

bug #24207: Example in inttypes.h is wrong

Submitted by:  Carl Lang <charlybravo>
Submitted on:  Thu 04 Sep 2008 10:27:08 PM UTC  
 
Category: DocumentationSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Documentation
Status: FixedPercent Complete: 100%
Assigned to: Eric Weddington <arcanum>Open/Closed: Closed
Release: 1.6.1Fixed Release: 1.7.0

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 04 Sep 2008 10:27:08 PM UTC, original submission:

The current example in the inttypes.h header contains the following line:

printf("The hexadecimal value of smallval is " PRIx8
", the decimal value of longval is " PRId32 ".\n",
smallval, longval);

That should be

printf("The hexadecimal value of smallval is %" PRIx8
", the decimal value of longval is %" PRId32 ".\n",
smallval, longval);

Note the two additional '%' characters, completing the format specification from the macros.

Carl Lang <charlybravo>

 

(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

 

Carbon-Copy List
  • -unavailable- added by arcanum (Updated the item)
  •  

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

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 17 Oct 2008 09:33:44 PM UTCarcanumStatusNone=>Fixed
      Percent Complete0%=>100%
      Assigned toNone=>arcanum
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>1.7.0
    Thu 04 Sep 2008 10:27:50 PM UTCcharlybravoCarbon-CopyRemoved 65388=>-

    Back to the top


    Powered by Savane 3.1-cleanup1