title: Is close/fclose on stdin guaranteed to be correct?
body: <p>It seems as though the following calls do what you'd expect (close the stream and not allow any further input - anything waiting for input on the stream returns error), but is it guaranteed to be correct across all compilers/platforms?</p>
  
  <pre><code>close(fileno(stdin));
  fclose(stdin);
  </code></pre>