Hi Bai!

I've tried it only in pure C (not nesC) with %lld and %llx.

Regards,
Andrey

Hi Andrey,
 
I just tested it. it didn't work though. What the flag you used in printf? Is that llx? Right? It still displayed low 32 bits. Confusing.
 
Regards,
Bai

On Fri, Feb 6, 2009 at 3:27 AM, Andrey Gursky <andrey.gur...@online.ua> wrote:
Bai, you should explicit write ULL at the end of the such big number (tested in C):
a=0x0000FFFFFFFFFFFFULL;

Best wishes,
Andrey

Hi All,
 
I have defined a uint64_t type variable as follows:
 
uint64_t a;
a=0x0000FFFFFFFFFFFF;
printf("a= %lld /n",a);
printf("a= %llx /n",a);
 
the result displayed as follows:
 
a= -1
a= ffffffff
 
The compilation didn't show any error. What is the problem? Does printf support to display the uint64_t type? Any help would be appreciated!
 
Regards,
Bai
 

_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to