COHERENT manpages
This page displays the COHERENT manpage for feof() [Discover stream status].
List of available manpages
Index
feof() -- STDIO Function (libc) Discover stream status #include <stdio.h> int feof(fp) FILE *fp; feof() tests the status of the argument stream fp. It returns a number other than zero if fp has reached the end of file, and zero if it has not. One use of feof() is to distinguish a value of -1 returned by getw() from an EOF. Example For an example of how to use this function, see the entry for fopen(). See Also EOF, libc ANSI Standard, §7.9.10.2 POSIX Standard, §8.1