title: How to implement a bitset in C?
body: <p>I have been using the <a href="http://download.oracle.com/javase/6/docs/api/java/util/BitSet.html" rel="noreferrer">Bitset</a> class in Java and I would like to do something similar in C. I suppose I would have to do it manually as most stuff in C. What would be an efficient way to implement?</p>
  
  <pre><code>byte bitset[]
  </code></pre>
  
  <p>maybe</p>
  
  <pre><code>bool bitset[]
  </code></pre>
  
  <p>?</p>