This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/559] %I64d is ignored when prepending it with qualifiers


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]