you could use bitfields:

http://en.wikipedia.org/wiki/Bit_field

joey