title: Too few arguments to function 'fgets'?
body: <p>Literally have only been learning to program for two hours now. I am using Sams Teach Yourself C in one hour a day and I am stuck on just a seemingly simply exercise on lesson 2.</p>
  
  <blockquote>
    <p>5. What does the following program do? (Enter, compile, and run it.)</p>
  
  <pre><code>/* ex02-05.c */
  #include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  int main(void)
  {
      char buffer[256];
  
      printf( "Enter your name and press &lt;Enter&gt;:\n");
      fgets( buffer );
  
      printf( "\nYour name has %d characters and spaces!",
                       strlen( buffer ));
  
      return 0;
  }
  </code></pre>
  </blockquote>
  
  <p>So the back of the book says that the end result should allow me to enter and name and have it tell me the amount of spaces and characters. However, I am getting an error that states that there are "too few arguments to function fgets on line 9"?</p>