title: convert binary data into hex string for C program
body: <p>I have a small binary image, that needs to be represented in a C program. The representation will be like:</p>
  
  <pre><code>static const char[] = {0x1, 0x2, 0x3, 0x4...};
  </code></pre>
  
  <p>(so, the bytes will be represented as a series of chars)</p>
  
  <p>How do I convert a binary file into a nice 0x..,0x.. string? Is there a program to do this?</p>