Sorry David for the second reply to you. I intended to reply to everyone. "David VanHorn" wrote:
>> In C there are 3 char types. "char" "signed char" "unsigned char" so >> maybe "char" isn't signed? > > Ok, so that leaves me VERY confused.. > > Correct me if I'm wrong, but "signed" variables use the high bit to indicate > negative by setting it to a 1, correct? > > So, I can only see two options, either you do, or you don't. > > Char has to equate to signed char, or unsigned char, doesn't it? char is either signed or unsigned. The standard leave it up to the implementation as to which is used with an unqualified "char" type. Traditionally under Unix environments a naked char type is signed, and that is what gcc uses as a default. I believe there is a compiler option that will change this behavior, but I'm too lazy to look right now. -Preston _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list