[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Fix 64 bit number formatting on Windows
From: |
Rob Landley |
Subject: |
Re: [Qemu-devel] Fix 64 bit number formatting on Windows |
Date: |
Fri, 16 Feb 2007 12:34:53 -0500 |
User-agent: |
KMail/1.9.1 |
On Tuesday 13 February 2007 4:44 pm, Hervé Poussineau wrote:
> Hi,
>
> Correct number formatting on Windows for 64 bit numbers is "I64", while it
> is "ll" on *nix.
Might I introduce you to the c99 PRIu64 macro (and friends)?
uint64_t bytes=1234;
printf("%"PRIu64" bytes\n", bytes);
Rob
--
"Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away." - Antoine de Saint-Exupery