2 feof - determine if end-of-file flag is set
8 fd file stream open for reading
13 The function feof(fd) returns 1 or 0 according as the end-of-file flag
16 The end-of-file flag for the stream fd is set if reading at the
17 end-of-file position is attempted. The flag is cleared by
18 positioning operations (fseek, rewind, fsetpos) and by freopen.
21 > fd1 = fopen("/tmp/newfile", "w")
22 > fputs(fd1, "Chongo was here\n")
24 > fd2 = fopen("/tmp/newfile", "r")
42 errno, fclose, feof, ferror, fflush, fgetc, fgetline, fgets, files, fopen,
43 fprintf, fputc, fputs, fseek, fsize, ftell, isfile, printf, prompt