Subject: Re: CVS commit: src/usr.bin/fstat
To: Martin Husemann <martin@duskware.de>
From: Klaus Klein <kleink@reziprozitaet.de>
List: source-changes
Date: 01/20/2003 11:11:31
Martin Husemann <martin@duskware.de> writes:

> On Mon, Jan 20, 2003 at 06:16:15PM +1100, Simon Burge wrote:
> 
> > The "z" modifier handles size_t (eg, "%zd").  off_t can use PRId64
> > from <inttypes.h> but it's a little ugly.
> 
> I was more thinking of defining our own PRIoff_t to make it independend
> of the 64bit assumption, but thats a portability drawback and probably not
> worth it.

The right way to address this (in a portable manner) would be using
PRIdMAX and casting to intmax_t, actually.


- Klaus