Re: Printing of off_t and size_t values

David Laight <[email protected]>
Newsgroups gmane.os.netbsd.devel.general
Message-ID <[email protected]>
> 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.

No - you need to use a format appropriate for the type.
If the type is explicilty [u]int64_t you want PRId64, no
point passing a 128 bit integer.....

Is there a PRIdsize and PRIdssize ???

	David

-- 
David Laight: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.