This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/559] %I64d is ignored when prepending it with qualifiers
- From: "mfluhr at nero dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 19 Nov 2004 11:39:09 -0000
- Subject: [Bug libc/559] %I64d is ignored when prepending it with qualifiers
- References: <20041118162142.559.mfluhr@nero.com>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From mfluhr at nero dot com 2004-11-19 11:39 -------
Ok. Then there is a little misunderstanding between Windows and Linux. I explain:
Under windows, when you want to work with _very_ large integers, you often uses
__int64. In order to correctly display these numbers, you use the I64 'length
modifier'.
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_format_specification_fields_.2d_.printf_and_wprintf_functions.asp)
So under windows, as I64 is considered as a length modifier, you can prepend a
width to it, and %15I64d is legal. It will display a 64bits int padded to 15 digits.
Normally under Linux, you have int64_t that is corresponding... but you have to
find a printf statement like %lld to display its value.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
http://sources.redhat.com/bugzilla/show_bug.cgi?id=559
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.