title: If fclose(0) is called, does this close stdin?
body: <p>If fclose(0) is called, does this close stdin? </p>
  
  <p>The reason why I'm asking this is that for some reason, stdin is being closed in my application and I cannot figure out why.  I checked for fclose (stdin) and this is not in the application and so I was wondering if fclose(0) could cause undefined behaviour such as closing stdin?</p>
  
  <p>If not, what are other ways that stdin could be erroneously closed?</p>