Closes all open files except stdin, stdout and stderr.
int _fcloseall (void);
int fcloseall (void);
Required Header |
<stdio.h> |
Return Value
Each of these functions return the number of files which were properly closed.
Remarks
The _fcloseall function closes all the currently open files and counts the number of files closed without error. Since this function is implemented by the low level I/O routine _close, there is a chance the same errors presented there may occur here. It is good practice to not use this function for that reason.
Any files which were closed with an error are still considered closed by the JCC library.int __fcloseall (void) is an undefined JCC library function which also closes the predefined streams stdin, stdout and stderr, and is the function called at the end of any JCC program which is linked to an I/O library.