01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FCLOSE ( 3S ) FCLOSE ( 3S )<br />

NAME<br />

fclose, fflush - close or flush a stream<br />

SYNOPSIS<br />

#include <br />

int rciose (stream)<br />

FILE •stream;<br />

int ffiush (stream)<br />

FILE •stream;<br />

DESCRIPTION<br />

Fclose causes any buffered data for the named stream to be written<br />

out, and the stream to be closed.<br />

Fclose is performed automatically for all open files upon calling<br />

exit(2).<br />

Fftush causes any buffered data for the named stream to be written<br />

to that file. The stream remains open.<br />

DIAGNOSTICS<br />

These functions return 0 for success, and EOF if any error (such<br />

as trying to write to a file that has not been opened for writing)<br />

was detected.<br />

SEE ALSO<br />

close(2), exit(2), fopen(3S), setbuf(3S).<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!