Subject: Re: bin/32785 [dM] du not terabyte-clean
To: der Mouse <mouse@NetBSD.org>
From: Martin Husemann <martin@duskware.de>
List: tech-userlevel
Date: 07/24/2006 22:59:49
On Mon, Jul 24, 2006 at 04:45:53PM -0400, der Mouse wrote:
> Where do I get a suitable printf format for these types?  I seem to
> recall that there are macros from some include file, but can't recall
> enough details - PRIsomething, isn't it?

Right, <inttypes.h> (which gets it from machine/int_fmthio.h via
sys/inttypes.h):

 uint64_t val = 13;
 printf("x = %" PRIu64 "\n", val);

Martin