title: Read raw bytes in argv[]
body: <p>I was wondering if there was a way to read bytes (like this: <code>\x00\x01\x02</code>) from the command line in C.</p>
  
  <p>For example:
  </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(int argc, char *argv[]) {
    printf("%s", argv[1]);
    return 0;
  }
  </code></pre>
  
  <pre class="lang-bash prettyprint-override"><code>user@UbuntuServer: ~/Code# gcc Program.c -o Program 
  user@UbuntuServer: ~/Code# ./Program "\x48\x69"
  
  Hiuser@UbuntuServer: ~/Code# ./Program "\x48\x69\x0a"
  
  Hi
  user@UbuntuServer: ~/Code#
  </code></pre>
  
  <p>Thanks!</p>