BSD 4_4 development
[unix-history] / usr / share / man / cat3 / feof.0
FERROR(3) BSD Programmer's Manual FERROR(3)
N\bNA\bAM\bME\bE
c\bcl\ble\bea\bar\bre\ber\brr\br, f\bfe\beo\bof\bf, f\bfe\ber\brr\bro\bor\br, f\bfi\bil\ble\ben\bno\bo - check and reset stream status
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
#\b#i\bin\bnc\bcl\blu\bud\bde\be <\b<s\bst\btd\bdi\bio\bo.\b.h\bh>\b>
_\bv_\bo_\bi_\bd
c\bcl\ble\bea\bar\bre\ber\brr\br(_\bF_\bI_\bL_\bE _\b*_\bs_\bt_\br_\be_\ba_\bm);
_\bi_\bn_\bt
f\bfe\beo\bof\bf(_\bF_\bI_\bL_\bE _\b*_\bs_\bt_\br_\be_\ba_\bm);
_\bi_\bn_\bt
f\bfe\ber\brr\bro\bor\br(_\bF_\bI_\bL_\bE _\b*_\bs_\bt_\br_\be_\ba_\bm);
_\bi_\bn_\bt
f\bfi\bil\ble\ben\bno\bo(_\bF_\bI_\bL_\bE _\b*_\bs_\bt_\br_\be_\ba_\bm);
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
The function c\bcl\ble\bea\bar\bre\ber\brr\br() clears the end-of-file and error indicators for
the stream pointed to by _\bs_\bt_\br_\be_\ba_\bm.
The function f\bfe\beo\bof\bf() tests the end-of-file indicator for the stream point-
ed to by _\bs_\bt_\br_\be_\ba_\bm, returning non-zero if it is set. The end-of-file indi-
cator can only be cleared by the function c\bcl\ble\bea\bar\bre\ber\brr\br().
The function f\bfe\ber\brr\bro\bor\br() tests the error indicator for the stream pointed to
by _\bs_\bt_\br_\be_\ba_\bm, returning non-zero if it is set. The error indicator can only
be reset by the c\bcl\ble\bea\bar\bre\ber\brr\br() function.
The function f\bfi\bil\ble\ben\bno\bo() examines the argument _\bs_\bt_\br_\be_\ba_\bm and returns its inte-
ger desciptor.
E\bER\bRR\bRO\bOR\bRS\bS
These functions should not fail and do not set the external variable
_\be_\br_\br_\bn_\bo.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
open(2), stdio(3)
S\bST\bTA\bAN\bND\bDA\bAR\bRD\bDS\bS
The functions c\bcl\ble\bea\bar\bre\ber\brr\br(), f\bfe\beo\bof\bf(), and f\bfe\ber\brr\bro\bor\br() conform to ANSI C
X3.159-1989 (``ANSI C '').
4.4BSD June 4, 1993 1