INtime SDK Help
fclose, fcloseall

Fclose closes a specified stream and fcloseall closes all open streams.

#include <stdio.h>

int fclose (FILE *stream);

int fcloseall (void);

Parameters

stream
Pointer to FILE structure.

Return Values

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.

Remarks

fcloseall closes all open streams except stdin, stdout, and stderr. It also closes and deletes any temporary files created by tmpfile.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/stdio.h stdio.h clib.lib

See Also

tmpfile