title: fgets() function in C
body: <p>I know everybody has told me to use fgets and not gets because of buffer overflow. However, I am a bit confused about the third parameter in <code>fgets()</code>.  As I understand it, fgets is dependent on:</p>
  
  <pre><code>char * fgets ( char * str, int num, FILE * stream );
  </code></pre>
  
  <p><code>char* str</code> is the ptr to where my input will be stored.  </p>
  
  <p><code>num</code> is the max number of character to be read.</p>
  
  <p>but what is <code>FILE *stream</code>?  If I am just prompting the user to enter a string (like a sentence) should I just type "<code>stdin</code>" ?</p>
  
  <p>And should I type <code>FILE *stdin</code> at the top, near <code>main()</code>?</p>