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


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