title: How to check if empty array in C
body: <p>I have the following code in C:</p>
  
  <pre><code>int i = 0;
  char delims[] = " \n";
  char *result = NULL;
  char * results[10];
  result = strtok( cmdStr, delims );
  while( result != NULL )
  {
       results[i] = result;
       i++;
       result = strtok(NULL, " \n");
  }
  
  if(!results[1])
  {
      printf("Please insert the second parameter...\n");
  }
  else
  {
      ...
  }
  </code></pre>
  
  <p>It always executes the <code>else</code> condition even if the <code>results[1]</code> is empty.</p>
  
  <p>I've tried with <code>results[1] == NULL</code> but no success.</p>
  
  <p>How do I can check if it is empty or not?</p>