Hi,
I need a byte representation that will allow me to shift right, AND, and compare bytes. I've managed to find this: http://www.informit.com/guides/conte...lus&seqNum=163
which says to use type unsigned char.
For testing purposes, I wish to print the byte in either binary or decimal, it doesn't matter. How would I do that? I've tried using atoi, but it always returns 0. ie:
unsigned char blah = 00000111;
printf("%d", atoi(&blah));
will print 0.
Thanks.