title: HEX assignement in C
body: <p>I have generated a long sequence of bytes which looks as follows:</p>
  
  <pre><code>0x401DA1815EB560399FE365DA23AAC0757F1D61EC10839D9B5521F.....
  </code></pre>
  
  <p>Now, I would like to assign it to a static unsigned char x[].</p>
  
  <p>Obviously, I get the warning that hex escape sequence out of range when I do this here</p>
  
  <pre><code>static unsigned char x[] = "\x401DA1815EB56039.....";
  </code></pre>
  
  <p>The format it needs is </p>
  
  <pre><code>static unsigned char x[] = "\x40\x1D\xA1\x81\x5E\xB5\x60\x39.....";
  </code></pre>
  
  <p>So I am wondering if in C there is a way for this assignment without me adding the
  hex escape sequence after each byte (could take quite a while)</p>