[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: printing size_t variables
From: |
Ben Pfaff |
Subject: |
Re: printing size_t variables |
Date: |
Sat, 02 Sep 2006 11:59:34 -0700 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
"Mark D. Baushke" <address@hidden> writes:
[printf]
> I would not mind seeing both the j and z modifiers
> generally implemented. However, as Bruno mentions,
> this would likely be a fair amount of overhead just
> for those few format characters. I think casting is
> good enough for now.
z and t can easily be handled by casting, but j cannot. However,
for intmax_t you can use PRIdMAX. For that matter, for ptrdiff_t
you can use PRIdPTR, which makes it a little bizarre that there
is no PRIuSIZE (I like the suggestion that someone made of
creating one).
--
Ben Pfaff
email: address@hidden
web: http://benpfaff.org