1FEOF(P) POSIX Programmer's Manual FEOF(P)
2
3
4
6 feof - test end-of-file indicator on a stream
7
9 #include <stdio.h>
10
11 int feof(FILE *stream);
12
13
15 The feof() function shall test the end-of-file indicator for the stream
16 pointed to by stream.
17
19 The feof() function shall return non-zero if and only if the end-of-
20 file indicator is set for stream.
21
23 No errors are defined.
24
25 The following sections are informative.
26
28 None.
29
31 None.
32
34 None.
35
37 None.
38
40 clearerr() , ferror() , fopen() , the Base Definitions volume of
41 IEEE Std 1003.1-2001, <stdio.h>
42
44 Portions of this text are reprinted and reproduced in electronic form
45 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
46 -- Portable Operating System Interface (POSIX), The Open Group Base
47 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
48 Electrical and Electronics Engineers, Inc and The Open Group. In the
49 event of any discrepancy between this version and the original IEEE and
50 The Open Group Standard, the original IEEE and The Open Group Standard
51 is the referee document. The original Standard can be obtained online
52 at http://www.opengroup.org/unix/online.html .
53
54
55
56IEEE/The Open Group 2003 FEOF(P)