title: C++: getting a fact size of data in uchar/guchar?
body: <p>The problem is simple: <code>sizeof((u_char)value)</code> returns 8. strlen fails. How to get a length of uchar's content?</p>
  
  <p>Attempted</p>
  
  <pre><code>std::cout &lt;&lt; "Data: " &lt;&lt; (u_char *)data[0] &lt;&lt; "\n"`;
  </code></pre>
  
  <p>u_char is defined in include/sys/*.h as unsigned char;</p>