> Tamas Rudnai wrote: > >> char is signed > > May be or may not be. The standard leaves that open. char was originally > not intended to do math (the name gives a hint :) so this probably wasn't > thought of being important. > > This has been mentioned before: when actual sizes and signed/unsigned are > important, it's good practice to use specific types that are unambiguous. > The standard types char and int are not (in the standard). > I can never remember how big Microchip makes various types, so I did a bunch of typedefs in a header file. My "friendly" types are like this: u8b unsigned 8 bit s8b signed 8 bit u16b unsigned 16 bit s16b signed 16 bit etc. Harold -- FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist