title: write raw binary to file in C
body: <p>I am trying to write raw binary bits at a time to a file.</p>
  
  <p>I have found an example that uses unsigned char -><a href="https://stackoverflow.com/a/2666669/1541965">https://stackoverflow.com/a/2666669/1541965</a></p>
  
  <p>But the minimum size is 8 bit (because of the unsigned char 0 to 255).</p>
  
  <p>Is there a way to write bits to a file in a more direct way?</p>
  
  <p>Thanks.</p>