News for hackers. Stuff that matters.
Re:Poll: How many programmers don't know about bit-wise oper... by daeken on Sunday April 07, 2013 @06:54AM (#5506774)
You can do this with bit field structs in C: http://www.cs.cf.ac.uk/Dave/C/node13.html

Super handy when you're dealing with oddly packed int representations and such.

Re:Poll: How many programmers don't know about bit-wise oper... by huhtenberg on Sunday April 07, 2013 @11:06AM (#5507427)
You would think so, but - No, there are no bitfield arrays. You can't have -

  struct octet
  {  
    int bit:1 [8];
  };
which is what the OP is asking for.