Want to get a solution for printf

Possible duplicate:
How to print fuint64_t?

I want to print u_int64_t in C. I want to know the format specifier for this? I am a C user, I want to do printf() .

+6
source share
2 answers
 #include <inttypes.h> #include <stdio.h> uint64_t t = 42; printf("%" PRIu64 "\n", t); 
+10
source

You can use the L modifier for 64-bit integers, for example:

 u_in64_t number; printf("%Lu", number); 
+1
source

Source: https://habr.com/ru/post/921238/


All Articles