source: trunk/minix/man/man3/fclose.3@ 22

Last change on this file since 22 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 832 bytes
Line 
1.\" @(#)fclose.3s 6.1 (Berkeley) 5/15/85
2.\"
3.TH FCLOSE 3 "May 15, 1985"
4.AT 3
5.SH NAME
6fclose, fflush \- close or flush a stream
7.SH SYNOPSIS
8.nf
9.ft B
10#include <stdio.h>
11
12int fclose(FILE *\fIstream\fP)
13int fflush(FILE *\fIstream\fP)
14.ft R
15.fi
16.SH DESCRIPTION
17.B Fclose
18causes any buffers for the named
19.I stream
20to be emptied, and the file to be closed.
21Buffers allocated by the standard input/output system
22are freed.
23.PP
24.B Fclose
25is performed automatically upon
26calling
27.BR exit (3).
28.PP
29.B Fflush
30causes any buffered data for the named output
31.I stream
32to be written to that file.
33The stream remains open.
34.SH "SEE ALSO"
35.BR close (2),
36.BR fopen (3),
37.BR setbuf (3).
38.SH DIAGNOSTICS
39These routines return
40.SM
41.B EOF
42if
43.I stream
44is not associated with an output file, or
45if buffered data cannot be transferred to that file.
Note: See TracBrowser for help on using the repository browser.