Functions HI-TECH C FEOF

FEOF, FERROR

概要

#include  <stdio.h>

feof(FILE * stream)
ferror(FILE * stream)


詳細

これらのマクロはそれぞれ指定されたストリームのEOFやERRORビットのステータスをテストします。 These macros test the status of the EOF and ERROR bits respectively for the specified stream. Each will be true if the corresponding flag is set. The macros are defined in stdio.h. Stream must be a token returned by a previous fopen() call. 対応するフラグが真になります。これらのマクロはstdio.hで定義されています。ストリームはあらかじめfopen() の呼び出しで、トークンが返されている必要があります。

参照

fopen, fclose