Fclose closes a specified stream and fcloseall closes all open streams.
#include <stdio.h> int fclose (FILE *stream); int fcloseall (void);
stream
fclose
returns 0 if the stream is successfully closed.
fcloseall
returns the total number of streams closed.
Both functions return EOF to indicate an error.
fcloseall closes all open streams except stdin, stdout, and stderr. It also closes and deletes any temporary files created by tmpfile.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/stdio.h | stdio.h | clib.lib |