https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59513
--- Comment #24 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- (In reply to Manfred Schwarb from comment #22) --- snip --- > Jerry, concerning your cited standard: > "If the file contains an endfile record" suggests that there is some > special marker in the file to be read/written. > In this example, we are doing some formatted IO to a plain text file, > there are no special markers. > Do I miss something? > > What does/should ftell() report in such a case? That we are one > character beyond EOF? I think Dominique has answered as far as the physical aspect. FTELL just returns the current physical location.