title: correct method to get the unsigned char pointer length
body: <p>I am using strlen function to get the length of unsigned char pointer. But VS compiler throws the following warning.</p>
  
  <pre><code>unsigned char myString[] = "This is my string";
  unsigned char* tmpBuffer = &amp;myString[0];
  size_t size = strlen(tmpBuffer);
  
  warning C4057: 'function' : 'const char *' differs in indirection to slightly different base types from 'unsigned char *'
  </code></pre>
  
  <p>So what is the proper way to get unsigned char pointer size to get rid of the warning.</p>