summaryrefslogtreecommitdiff
path: root/static/v10/man3/ferror.3
diff options
context:
space:
mode:
Diffstat (limited to 'static/v10/man3/ferror.3')
-rw-r--r--static/v10/man3/ferror.362
1 files changed, 62 insertions, 0 deletions
diff --git a/static/v10/man3/ferror.3 b/static/v10/man3/ferror.3
new file mode 100644
index 00000000..227e4834
--- /dev/null
+++ b/static/v10/man3/ferror.3
@@ -0,0 +1,62 @@
+.TH FERROR 3S
+.CT 2 file_io file_inq_creat
+.SH NAME
+feof, ferror, clearerr, fileno \(mi stream status inquiries
+.SH SYNOPSIS
+.B #include <stdio.h>
+.PP
+.B int feof(stream)
+.br
+.SM
+.B FILE
+.B *stream;
+.PP
+.B int ferror(stream)
+.br
+.SM
+.B FILE
+.B *stream
+.PP
+.B int clearerr(stream)
+.br
+.SM
+.B FILE
+.B *stream
+.PP
+.B int fileno(stream)
+.br
+.SM
+.B FILE
+.B *stream;
+.SH DESCRIPTION
+.I Feof
+returns non-zero if end of file has been encountered on the named input
+.I stream,
+otherwise zero.
+.PP
+.I Ferror
+returns non-zero when an error has occurred reading or writing
+the named
+.I stream,
+otherwise zero.
+Unless cleared by
+.I clearerr,
+the error indication lasts until
+the stream is closed.
+.PP
+.I Clearerr
+resets the error indication on the named
+.I stream.
+.PP
+.I Fileno
+returns the integer file descriptor
+associated with the
+.I stream,
+see
+.IR open (2).
+.PP
+These functions
+are implemented as macros;
+they cannot be redeclared.
+.SH "SEE ALSO"
+.IR stdio (3)