I would like to be able to create an array of (for example) 16 or 18 or 40 or 100 bits.
I'm aware I can create an array of unsigned chars and simply use the bits I want from that, but I'd prefer a custom bit array which I can operate on as a whole without worrying about which byte (i.e. unsigned char array element) my bit is in.
Is this possible?
Any pointers appreciated.