Guardian Native C Library Calls Reference Manual (G06.28+, H06.04+)

ferror(3) Guardian Native C 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 native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
H-series OSS processes: /G/system/zdllnnn/zcrtldll
SYNOPSIS
#include <stdio.h>
int ferror(
FILE *stream);
PARAMETERS
stream Species the input or output stream.
DESCRIPTION
The ferror() function tests whether input/output errors have occurred on the specied stream.
RETURN VALUES
If an I/O error occurred when reading from or writing to the stream specied 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), leno(3), clearerr(3).
210 Hewlett-Packard Company 527192-005