Technical Support
On-Line Manuals
RL-ARM User's Guide
#include <stdio.h> int feof ( FILE* stream); /* file stream to check */
The function feof determines whether an end-of-file condition has occurred. The parameter stream is a file pointer specifying a data stream.
The function is included the library RL-FlashFS. The prototype is defined in the file stdio.h.
ferror, ftell, rewind
#include <rtl.h> #include <stdio.h> void tst_feof (void) { FILE *fin; char ch; if (fin = fopen ("Test_feof") != NULL) { // Read all characters from the file while (!feof (fin)) { ch = fgetc (fin); } fclose (fin); } }