1FERROR(3S)                                                          FERROR(3S)
2
3
4

NAME

6       feof, ferror, clearerr, fileno - stream status inquiries
7

SYNOPSIS

9       #include <stdio.h>
10
11       feof(stream)
12       FILE *stream;
13
14       ferror(stream)
15       FILE *stream
16
17       clearerr(stream)
18       FILE *stream
19
20       fileno(stream)
21       FILE *stream;
22

DESCRIPTION

24       Feof  returns  non-zero  when  end  of  file is read on the named input
25       stream, otherwise zero.
26
27       Ferror returns non-zero when an error has occurred reading  or  writing
28       the  named  stream,  otherwise  zero.   Unless cleared by clearerr, the
29       error indication lasts until the stream is closed.
30
31       Clrerr resets the error indication on the named stream.
32
33       Fileno returns the integer file descriptor associated with the  stream,
34       see open(2).
35
36       These functions are implemented as macros; they cannot be redeclared.
37

SEE ALSO

39       fopen(3), open(2)
40
41
42
43                                                                    FERROR(3S)
Impressum