Pegasus InfoCorp: Web site design and web software development company

FCLOSE (3)

close a stream

SYNOPSIS

    #define _GNU_SOURCE #include <stdio.h> int fcloseall(void);

DESCRIPTION

    The fcloseall function dissociates all open streams from its underlying file or set of functions. Any buffered output data is written first, using fflush (3). Note that the standard streams (stdin, stdout and stderr) are also closed.

RETURN VALUES

    This function always returns 0.

SEE ALSO

CONFORMING TO

    The fcloseall function is a GNU extension.

    man3/ecvt.3 man3/fopen.3 man3/ferror.3