qc.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
────────────────────────────────────────────────────────────────────────────
 
     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 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.
                                    -♦-