title: How to detect empty string from fgets
body: <p>I'm trying to detect the input of fgets from stdin as empty (when I press enter without entering in anything). Here is my program:</p>
  
  <pre><code>int main()
  {
      char input[1000];
      printf("Enter :");
      fgets(input, 1000, stdin);
      input[strlen(input) - 1] = '\0';
  
      if(input != '\0'){
          printf("hi");
      }
  
      return 0;
  
  }
  </code></pre>
  
  <p>I want to do some sort of condition which makes it not print anything, but clearly this way isn't right. I also tried NULL, which did not work. </p>
  
  <p>Thanks!</p>