FCLOSEALL(3) NEWLIB FCLOSEALL(3)NAME
4.5 `fcloseall'--close all files
SYNOPSIS
#include <stdio.h>
int fcloseall(void);
int _fcloseall_r (struct _reent *PTR);
DESCRIPTION
`fcloseall' closes all files in the current reentrancy struct's domain.
The function `_fcloseall_r' is the same function, except the reentrancy
struct is passed in as the PTR argument.
This function is not recommended as it closes all streams, including
the std streams.
RETURNS
`fclose' returns `0' if all closes are successful. Otherwise, EOF is
returned.
PORTABILITY
`fcloseall' is a glibc extension.
Required OS subroutines: `close', `fstat', `isatty', `lseek',
`read', `sbrk', `write'.
SEE ALSOfcloseall is part of the library. The full documentation for is main‐
tained as a Texinfo manual. If info and are properly installed at your
site, the command
info
will give you access to the complete manual.
NEWLIB April 2010 FCLOSEALL(3)