[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] how to print size_t in LGPLv2+ program



Eric Blake <eblake redhat com> writes:

> In a quick google search, I found this use of PRIdS (which is geared
> more for ssize_t, but the analog PRIuS would apply to size_t):
> http://bytes.com/topic/c/answers/506972-64-bit-portability-size_t-printf-format-strings
> However, S is awfully short; I'd prefer something a bit longer like
> PRIuSIZE.

To my eye, PRIuSIZE follows the pattern set by PRIdPTR,
PRIuLEASTN, etc.  I like it.
-- 
Ben Pfaff 
http://benpfaff.org


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]