News for hackers. Stuff that matters.
Re:Poll: How many programmers don't know about bit-wise oper... by dspeyer on Sunday April 07, 2013 @08:53AM (#5507040)

    struct header __atribute__((packed)) {
      unsigned int highnibble : 4;
      unsigned int flag_foo : 1;
      unsigned int flag_bar : 1;
      unsigned int flag_baz : 1;
      unsigned int flag_qux : 1;
    }
    
    if (((header)value).flag_bar) {

There are no comments on this comment yet.