fclose, fflush --
close or flush a stream
cc . . . -lc
int fclose (stream)
int fflush (stream)
The fclose function causes any buffered data
for the named stream to be written out,
and the stream to be closed.
The fclose function
is performed automatically for all open files upon
fflush causes any buffered data for the named
stream to be written to that file.
The stream remains open.
These functions return 0 for success and
if any error (such as trying to write to a file that has not been opened
for writing) was detected.
fclose and fflush are conformant with:
X/Open Portability Guide, Issue 3, 1989
ANSI X3.159-1989 Programming Language -- C
Intel386 Binary Compatibility Specification, Edition 2 (iBCSe2)
IEEE POSIX Std 1003.1-1990 System Application Program Interface (API) [C Language] (ISO/IEC 9945-1)
NIST FIPS 151-1
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003