Re: >In Hitech C, is it possible to access the same variable as two >different types in C, specifically bits and bytes ? >For example I want some bit variables for various option flags, but >want to access them all as a single byte when saving/loading them to >eeprom. > >Can unions be used to do this ? Yes. -- ______________________________________ Andrew E. Kalman, Ph.D. aek@pumpkininc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads