title: How to determine array length of uint8_t?
body: <p>I'm trying to determine array length of <code>msg</code> on the below code. I used <code>strlen</code> and <code>sizeof</code> but they don't return 6. What function can I use to determine the length of <code>uint8_t</code> array or how can I modify the below code (<code>osal_DataLenght()</code> func)?</p>
  
  <pre><code>int osal_DataLength( char *pString ){
    return (int)( strlen( pString ) );
  }
  
  void setNewLevel( uint8_t newLevel ){ //GW specific
    uint8_t msg[8] = {'\0'};
    msg[0] = '0';
    msg[1] = '7';
    msg[6]= newLevel;
    //msg[7] = '0';
    printf("the array length:%d\n", osal_DataLength(msg) );
  }
  
  int main(void){
      setNewLevel(0xD5);
      return 0;
  }
  </code></pre>