Re: cross platform

From: Tim Kientzle <kientzle_at_freebsd.org>
Date: Sat, 12 Feb 2005 22:15:23 -0800
Joseph Koshy wrote:
> 
> I had a problem with printing uint64_t values portably between
> the AMD 64 and i386.

printf("%jx", (uintmax_t)v);

This is about as portable as you can
get, since it's defined as part of
Standard C.

Cheers,

Tim
Received on Sun Feb 13 2005 - 05:15:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:28 UTC