title: fgets in infinite loop terminating
body: <p>I am trying to use fgets within an infinite loop as I need a specific input from the user. I want to continuously print something until I receive any input from the user. However fgets seems to make the program wait for input. </p>
  
  <p>I've tried using other input methods such as gets.</p>
  
  <pre><code>while(1){
          char input[100];
          fgets(input, sizeof(input),stdin);
          printf("I want this statement to continuously print.");
  }
  </code></pre>
  
  <p>The statement only prints when I enter text. However I want it to continuously print the statement regardless of input.</p>