Subject: Re: Printing of off_t and size_t values
To: Klaus Klein <kleink@reziprozitaet.de>
From: Martin Husemann <martin@duskware.de>
List: tech-misc
Date: 01/20/2003 14:31:12
On Mon, Jan 20, 2003 at 12:55:00PM +0100, Klaus Klein wrote:
> Well, if we are really set to go C99/POSIX-2001 here, I think it would
> be preferable not to have a 64-bit assumption but cast to intmax_t and
> format using either %jd or PRIdMAX.
Ok, using (intmax_t) casts and proper format specifiers sounds sane. And
future proof.
But then I'm suddenly not sure anymore what this buys us and if it's worth
the trouble (and the C99 dependency). I had hoped to remove the cast in the
first place, and just find the right format specifier.
Martin