title: Converting C string to binary representation
body: <p>In ANSI C, how do we convert a string in to an array of binary bytes? 
  All the googling and searching gives me answers for C++ and others and not C.</p>
  
  <p>One idea I had was to convert the string into ASCII and then convert each ASCII value into its binary. (Duh!) I know it is the dumbest of ideas but I am not sure of any other option.</p>
  
  <p>I've heard abt the encoding function in Java. I am not sure if that suits the same purpose and can be adopted to C.</p>
  
  <pre><code>string = "Hello"
  bytearr[] = 10100101... some byte array..
  </code></pre>
  
  <p>It would be great if someone can throw some light on this.</p>
  
  <p>Thanks!</p>