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

12 lines
160 B
C

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