> I'm not familiar with C18, but is a "char" a signed 8-bit > quantity or an > unsigned 8-bit quantity? It is is signed, you would expect the VC++ > behavior. If it is unsigned, you would get the C18 behavior. In ANSI C it is left to the compiler to decide whether a char is signed or unsigned. So if you want to be sure of anything outside 0..127 you will have to declare a 'signed char' or 'unsigned char'. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist