title: too few arguments to function 'fgets' in C
body: <p>Whenever I compile this I get that error, and I am not sure why. I am copying this straight out of a book. Can anyone help?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  int main(void) {
      char buffer[256];
  
      printf("Enter your name and press enter:\n");
      fgets(buffer);
  
      printf("Your name has %d characters and spaces!", strlen(buffer));
  
      return 0;
  }
  </code></pre>