Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)
ferror(3) OSS Library Calls Reference Manual
NAME
ferror - Tests the error indicator on a stream
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRTLSRL
G-series native OSS processes: /G/system/sysnn/zcrtlsrl
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcrtldll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycrtldll
SYNOPSIS
#include <stdio.h>
int ferror(
FILE *stream);
PARAMETERS
stream Specifies the input or output stream.
DESCRIPTION
The ferror( ) function tests whether input/output errors have occurred on the specified stream.
RETURN VALUES
If an I/O error occurred when reading from or writing to the stream specified by the stream
parameter, a nonzero value is returned. Otherwise, a value of 0 (zero) is returned.
ERRORS
The ferror( ) function does not set errno.
RELATED INFORMATION
Functions: fopen(3), feof(3), fileno(3), clearerr(3).
2−54 Hewlett-Packard Company 527187-017