title: fgets() includes the newline at the end
body: <pre><code>fgets(input,sizeof(input),stdin);
  if (strcmp(input, "quit") == 0){
    exit(-1);
  }
  </code></pre>
  
  <p>If I type quit, it does not exit the program; I'm wondering why this is the case.</p>
  
  <p>By the way <code>input</code> is declared as <code>char *input;</code>.</p>