Mark Rages wrote: > and instead of an enum I would define a bitmask > > #define SUN (1<<0) > #define MON (1<<1) Do you see an advantage to use #defines instead of an enum? typedef enum _WEEK_DAYS { SUN = (1<<0), MON = (1<<1), ... } WEEK_DAYS; In the end not much of a difference, but an enum has the advantage of not being textual replacement. Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist