>-----Original Message----- >From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] >Sent: 02 December 2005 12:04 >To: piclist@mit.edu >Subject: Re: [PIC] C-Compiler: One's complement of unsigned char > > >(BTW, since a byte is such a common type for embedded >programming, it is probably convenient to declare a type for >it, instead of typing the inconvenient "unsigned char" so >often. I use an include file where I declare the types u8, i8, >u16, i16, u32, i32 -- which then are always what they seem to >say they are, independently of the particular compiler. :) It would be good practice to start using the C99 fixed integer size types rather than roll your own: uint8_t uint16_t uint32_t int8_t int16_t int32_t Regards Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist