Open System Services Library Calls Reference Manual (G06.27+, H06.04+)
OSS Library Calls (e - f) feof(3)
NAME
feof - Tests EOF on a stream
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRTLSRL
G-series native OSS processes: /G/system/sysnn/zcrtlsrl
H-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
H-series OSS processes: /G/system/zdllnnn/zcrtldll
SYNOPSIS
#include <stdio.h>
int feof(
FILE *stream);
PARAMETERS
stream Specifies the input stream.
DESCRIPTION
The feof() function test the EOF (End-of-File) condition on the specified stream.
RETURN VALUES
If EOF has previously been detected reading the input stream specified by the stream parameter,
a nonzero value is returned. Otherwise, a value of 0 (zero) is returned.
ERRORS
No error is returned. The feof() function does not set errno.
RELATED INFORMATION
Functions: ferror(3), fileno(3), clearerr(3), fopen(3).
527187-004 Hewlett-Packard Company 2−29