home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD1.bin
/
gnu
/
man
/
cat3
/
ferror.0
< prev
next >
Wrap
Text File
|
1993-12-07
|
2KB
|
67 lines
FERROR(3) UNIX Programmer's Manual FERROR(3)
NNAAMMEE
cclleeaarreerrrr, ffeeooff, ffeerrrroorr, ffiilleennoo - check and reset stream status
SSYYNNOOPPSSIISS
##iinncclluuddee <<ssttddiioo..hh>>
_v_o_i_d
cclleeaarreerrrr(_F_I_L_E _*_s_t_r_e_a_m)
_i_n_t
ffeeooff(_F_I_L_E _*_s_t_r_e_a_m)
_i_n_t
ffeerrrroorr(_F_I_L_E _*_s_t_r_e_a_m)
_i_n_t
ffiilleennoo(_F_I_L_E _*_s_t_r_e_a_m)
DDEESSCCRRIIPPTTIIOONN
The function cclleeaarreerrrr() clears the endoffile and error indicators for
the stream pointed to by _s_t_r_e_a_m.
The function ffeeooff() tests the endoffile indicator for the stream point
ed to by _s_t_r_e_a_m, returning nonzero if it is set. The endoffile indi
cator can only be cleared by the function cclleeaarreerrrr().
The function ffeerrrroorr() tests the error indicator for the stream pointed to
by _s_t_r_e_a_m, returning nonzero if it is set. The error indicator can only
be reset by the cclleeaarreerrrr() function.
The function ffiilleennoo() examines the argument _s_t_r_e_a_m and returns its inte
ger desciptor.
EERRRROORRSS
These functions should not fail and do not set the external variable
_e_r_r_n_o.
SSEEEE AALLSSOO
open(2), stdio(3)
SSTTAANNDDAARRDDSS
The functions cclleeaarreerrrr(), ffeeooff(), and ffeerrrroorr() conform to ANSI
C3.1591989 (``ANSI C'').
BSD Experimental June 29, 1991 1