[libvirt] how to print size_t in LGPLv2+ program
Ben Pfaff
blp at cs.stanford.edu
Tue Aug 17 22:15:20 UTC 2010
Eric Blake <eblake at 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
More information about the libvir-list
mailing list