summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/mingwex/stdio/ftello64.c
blob: 97a388cd621c870fd4bfa863f0d544faa5eca2b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>

off64_t __cdecl
ftello64 (FILE * stream)
{
  fpos_t pos;
  if (fgetpos(stream, &pos))
    return  -1LL;
  else
   return ((off64_t) pos);
}