title: Decimal to Binary
body: <p>I have a number that I would like to convert to binary (from decimal) in C.</p>
  
  <p>I would like my binary to always be in 5 bits (the decimal will never exceed 31). I already have a function that does it manually by dividing but that is hard to pad it to 5 bits.</p>
  
  <p>Is there any easier way? Perhaps using bitwise shift?</p>
  
  <p>I would also like the binary to be represented in a <code>char *</code></p>