[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #24207] Example in inttypes.h is wrong
From: |
Carl Lang |
Subject: |
[avr-libc-dev] [bug #24207] Example in inttypes.h is wrong |
Date: |
Thu, 04 Sep 2008 22:27:10 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1 |
URL:
<http://savannah.nongnu.org/bugs/?24207>
Summary: Example in inttypes.h is wrong
Project: AVR C Runtime Library
Submitted by: charlybravo
Submitted on: Thu 04 Sep 2008 10:27:08 PM GMT
Category: Documentation
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Documentation
Status: None
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: 1.6.1
Fixed Release: None
_______________________________________________________
Details:
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.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?24207>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-libc-dev] [bug #24207] Example in inttypes.h is wrong,
Carl Lang <=