newlib-cygwin/winsup/mingw/mingwex/stdio/ftello64.c

12 lines
160 B
C
Executable File

#include <stdio.h>
off64_t __cdecl
ftello64 (FILE * stream)
{
fpos_t pos;
if (fgetpos(stream, &pos))
return -1LL;
else
return ((off64_t) pos);
}