tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Defining more PRIxxx macros
Martin Husemann <martin%duskware.de@localhost> wrote:
> On Sat, Jan 17, 2009 at 10:53:08AM +0200, Alan Barrett wrote:
>> off_t -> PRIdOFF, PRIiOFF, PRIoOFF, PRIuOFF, ...
>> [s]size_t -> PRIdSIZE, PRIiSIZE, PRIoSIZE, PRIuSIZE, ...
>
> Why size_t? C99 has defined formats modifiers for size_t (z) and
> ptrdiff_t (t). So using %zu to print a size_t is more portable than
> "%" PRIuSIZE.
That's probably tangential, but microsoft still does not support 'z'
(at least not in VC 2005, dunno about VC 2008).
SY, Uwe
--
uwe%stderr.spb.ru@localhost | Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen
Home |
Main Index |
Thread Index |
Old Index