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: "jakub at redhat dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 19 Nov 2004 11:51: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 jakub at redhat dot com 2004-11-19 11:51 -------
glibc follows ISO C99 and POSIX.
Under ISO C or POSIX, if you have a int64_t value and want to print it portably
as signed decimal integer with width 15, you
#include <inttypes.h>
and use int64_t val; printf ("%15" PRId64 "\n", val);
or printf ("%15" PRId64 "\n", (int64_t) 10);
See ISO C99 7.8.1 or
http://www.opengroup.org/onlinepubs/009695399/basedefs/inttypes.h.html
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
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.