C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
fclose, _fcloseall
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The fclose function closes the given <stream>. The _fcloseall
     function closes all open streams except stdin, stdout, and stderr
     (and in DOS, _stdaux, and _stdprn). It also closes and deletes
     any temporary files created by tmpfile.
 
     In both functions, all buffers associated with the stream are
     flushed to the operating system prior to closing. System-allocated
     buffers are released when the stream is closed. Buffers assigned
     with setbuf and setvbuf are not automatically released.
 
     Return Value
 
     The fclose function returns 0 if the stream is successfully
     closed. The _fcloseall function returns the total number of
     streams closed. Both functions return EOF to indicate an error.
                                    -♦-