COHERENT manpages
This page displays the COHERENT manpage for fclose() [Close a stream].
List of available manpages
Index
fclose() -- STDIO Function (libc) Close a stream #include <stdio.h> int fclose(fp) FILE *fp; fclose() closes the stream fp. It calls fflush() on the given fp, closes the associated file, and releases any allocated buffer. The function exit() calls fclose() for open streams. Example For examples of how to use this function, see the entries for fopen() and fseek(). See Also libc ANSI Standard, §7.9.5.1 POSIX Standard, §8.1 Diagnostics fclose() returns EOF if an error occurs.