Hi
if I have an integer for instance
int x= -3
and I try to print it in hex
printf("%X", x);
It prints out FFFFD.
Is there an easy function in the library that will cut off some of the front F's?
Hi
if I have an integer for instance
int x= -3
and I try to print it in hex
printf("%X", x);
It prints out FFFFD.
Is there an easy function in the library that will cut off some of the front F's?
Width specifiers don't work with %X so you'll need to mask it like that.Code:printf( "%X", x &0xFF );
Quzah.
Hope is the first step on the road to disappointment.
hmmm interesting...
~ssharish
Life is like riding a bicycle. To keep your balance you must keep moving - Einstein