Gnulib module: ftell
Portability problems fixed by Gnulib:
putcthat followed a
getccall that reached EOF on some platforms: Solaris 11 2010-11.
ungetc, throws away the
ungetcbuffer, changes the stream’s file position, and returns the wrong position on some platforms: macOS 10.15 and newer.
Portability problems not fixed by Gnulib:
fseekon some platforms: HP-UX 11.
fgetposbehave incorrectly on input streams that are opened in
O_TEXTmode and whose contents contains Unix line terminators (LF), on some platforms: mingw, MSVC 14.
longis a 32-bit type,
ftelldoes not work correctly with files larger than 2 GB, even when the
AC_SYS_LARGEFILEmacro is used. The fix is to use