[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: xsrc/external/mit/xdm/dist/xdm
On Fri, 18 Oct 2013, Jukka Ruohonen wrote:
Print time_t values by casting to intmax_t and using "%ji" format.
Wouldn't the "right" way be PRIdMAX from inttypes(3)? Anyways,
for curiosity: is there actually a portable way across operating
systems to deal with this?
The "j" modifier is defined in the C99 standard, and that's good
enough for me. PRIdMAX would also work, but is more verbose.
I suppose some operating systems might exist where "%jd" doesn't
work but "%"PRIdMAX does work, and if this was the xorg project
instead of the NetBSD project then I might care about that.
--apb (Alan Barrett)
Main Index |
Thread Index |