Code: Select all
#include <inttypes.h>
int 64_t bigi = 1234;
printf("Here is a big int %" PRId64 "\n", bigi);
Code: Select all
Here is a big int 1234
Code: Select all
Here is a big int ld
Code: Select all
printf("Here is a big int %lld\n", bigi);
Code: Select all
#include <inttypes.h>
int 64_t bigi = 1234;
printf("Here is a big int %" PRId64 "\n", bigi);
Code: Select all
Here is a big int 1234
Code: Select all
Here is a big int ld
Code: Select all
printf("Here is a big int %lld\n", bigi);
Unfortunately I don't know of a way to do this to third-party code without editing it.printf("Here is a big int %" PRId32 "%" PRId32 "\n", (int)(bigi >> 32), (int)bigi);
Users browsing this forum: No registered users and 116 guests