.\" Copyright (c) 1990, 1991 Regents of the University of California.
.\" All rights reserved.
.\"
+.\" %%%LICENSE_START(BSD_4_CLAUSE_UCB)
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
+.\" %%%LICENSE_END
.\"
.\" @(#)stdio.3 6.5 (Berkeley) 5/6/91
.\"
Creating an existing file
causes its former contents to be discarded.
If a file can support positioning requests (such as a disk file,
-as opposed to a terminal) then a
+as opposed to a terminal), then a
.I file position indicator
associated with the stream is positioned at the start of the file (byte
zero), unless the file is opened with append mode.
do not bother about closing files properly.
.PP
At program startup, three text streams are predefined and need not be
-opened explicitly \(em
+opened explicitly:
.I standard input
-(for reading conventional input), \(em
+(for reading conventional input),
.I standard output
-(for writing conventional input), and
+(for writing conventional output), and
.I standard error
(for writing diagnostic output).
These streams are abbreviated
.IR stderr .
When opened, the standard error stream is not fully buffered; the standard
input and output streams are fully buffered if and only if the streams do
-not to refer to an interactive device.
+not refer to an interactive device.
.PP
Output streams that refer to terminal devices are always line buffered by
default; pending output to such streams is written automatically whenever
and
.B putchar
exist and will be used if the macros definitions are explicitly removed.
-.SS "List of Functions"
+.SS List of functions
.TS
;
lb lb
vsprintf formatted output conversion
vsscanf input format conversion
.TE
-.SH "CONFORMING TO"
+.SH CONFORMING TO
The
.I stdio
library conforms to C89.
-.SH "SEE ALSO"
+.SH SEE ALSO
.BR close (2),
.BR open (2),
.BR read (2),
.BR write (2),
.BR stdout (3),
.BR unlocked_stdio (3)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.