title: End of File(EOF) of Standard input stream (stdin)
body: <p>Does stdin have any EOF? For example, if I start reading from stdin using <code>fread</code> or <code>read</code>, then will the following loop end?</p>
  
  <pre><code>while ((c = read(0, buffer, BUFSIZ)) &gt; 0) {
      .
      .
      .
  }
  </code></pre>
  
  <p>If the answer to this question is no, then is there any way to add EOF to stdin?</p>