|
|
1.1 root 1: .TH FERROR 3S
2: .CT 2 file_io file_inq_creat
3: .SH NAME
4: feof, ferror, clearerr, fileno \(mi stream status inquiries
5: .SH SYNOPSIS
6: .B #include <stdio.h>
7: .PP
8: .B int feof(stream)
9: .br
10: .SM
11: .B FILE
12: .B *stream;
13: .PP
14: .B int ferror(stream)
15: .br
16: .SM
17: .B FILE
18: .B *stream
19: .PP
20: .B int clearerr(stream)
21: .br
22: .SM
23: .B FILE
24: .B *stream
25: .PP
26: .B int fileno(stream)
27: .br
28: .SM
29: .B FILE
30: .B *stream;
31: .SH DESCRIPTION
32: .I Feof
33: returns non-zero if end of file has been encountered on the named input
34: .I stream,
35: otherwise zero.
36: After returning
37: .BR EOF ,
38: .IR stdio (3)
39: functions will not necessarily return
40: .BR EOF
41: again;
42: .I feof
43: provides a lasting indication.
44: .PP
45: .I Ferror
46: returns non-zero when an error has occurred reading or writing
47: the named
48: .I stream,
49: otherwise zero.
50: Unless cleared by
51: .I clearerr,
52: the error indication lasts until
53: the stream is closed.
54: .PP
55: .I Clearerr
56: resets the error indication on the named
57: .I stream.
58: .PP
59: .I Fileno
60: returns the integer file descriptor
61: associated with the
62: .I stream,
63: see
64: .IR open (2).
65: .PP
66: These functions
67: are implemented as macros;
68: they cannot be redeclared.
69: .SH "SEE ALSO"
70: .IR stdio (3)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.