bug-gnulib
[Top][All Lists]
Advanced

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

Re: how to print size_t in LGPLv2+ program


From: Ben Pfaff
Subject: Re: how to print size_t in LGPLv2+ program
Date: Tue, 17 Aug 2010 15:15:20 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Eric Blake <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]