tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Printing 64-bit ints
On Thu, Jun 15, 2017 at 01:19:57PM +0100, Robert Swindells wrote:
>
> Is there a recommended way to print a 64-bit value ? The man page for
> printf(3) suggests that using %qd is deprecated.
See inttypes(3).
#include <stdint.h>
#include <inttypes.h>
uint64_t x = 12;
printf("%" PRIu64 "\n", x);
Dave
--
David Young
dyoung%pobox.com@localhost Urbana, IL (217) 721-9981
Home |
Main Index |
Thread Index |
Old Index