title: Best way to check if a character array is empty
body: <p>Which is the most reliable way to check if a character array is empty?</p>
  
  <pre><code>char text[50];
  
  if(strlen(text) == 0) {}
  </code></pre>
  
  <p>or</p>
  
  <pre><code>if(text[0] == '\0') {}
  </code></pre>
  
  <p>or do i need to do </p>
  
  <pre><code> memset(text, 0, sizeof(text));
   if(strlen(text) == 0) {}
  </code></pre>
  
  <p>Whats the most efficient way to go about this?</p>