tail head cat sleep
QR code linking to this page

manページ  — FERROR

名称

clearerr, feof, ferror, fileno – ストリームの状態のチェックとリセット

内容

ライブラリ

Standard C Library (libc, -lc)

書式

#include <stdio.h>

void
clearerr(FILE *stream);

int
feof(FILE *stream);

int
ferror(FILE *stream);

int
fileno(FILE *stream);

解説

clearerr() 関数は、 stream が指すストリームに対するファイル終了表示子と エラー表示子をクリアします。

feof() 関数は、 stream が指すストリームに対するファイル終了表示子を検査し、 ファイル終了表示子が設定されている場合は 0 以外を戻します。 ファイル終了表示子をクリアできるのは、 clearerr() 関数のみです。

ferror() 関数は、 stream が指すストリームに対するエラー表示子を検査し、 エラー表示子が設定されている場合は 0 以外を戻します。 エラー表示子をリセットできるのは、 clearerr() 関数のみです。

fileno() 関数は、引数 stream を検査し、その整数記述子を戻します。

エラー

この関数はエラーにならず、外部変数 errno を設定しません。

関連項目

open(2), fdopen(3), stdio(3)

規格

clearerr() 関数、 feof() 関数、 ferror() 関数は、 ISO/IEC 9899:1990 ("ISO C90") に適合しています。

FERROR (3) April 19, 1994

tail head cat sleep
QR code linking to this page


このマニュアルページサービスについてのご意見は Ben Bullock にお知らせください。 Privacy policy.

One of the advantages of using UNIX to teach an operating systems course is the sources and documentation will easily fit into a student's briefcase.
— John Lions