title: C get size of hex shellcode
body: <p>How can I get the size of my char pointer </p>
  
  <pre><code>char *data = "\x30\x2e\x30\x2e\x30\x2e\x30\x3a\x30";
  </code></pre>
  
  <p>Using <code>strlen(data)</code> or <code>sizeof(data)</code> always returns <code>1</code></p>