title: Copying binary data with memcpy in c
body: <p>I have the following problem when using memcpy:</p>
  
  <p>Suppose that an hexadecimal data must be copied in binary, e.g.: 203800000E820006, then apply the following instruction:</p>
  
  <pre><code>unsigned char buffer[8];
  memcpy(buffer,"\x20\x38\x00\x00\x0E\x82\x00\x06",8);
  </code></pre>
  
  <p>However, when I write the data in binary, it only prints the 2 first bytes in binary, because \x00 is interpreted as a string terminator. How to avoid or fix this in order to represent the 16-char string in a 8-char binary format?</p>