aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/mingw/stdio/ftello64.c
blob: a0192fbe6d4c8650f64be598f2d91eebb3886f41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
 * This file has no copyright assigned and is placed in the Public Domain.
 * This file is part of the mingw-w64 runtime package.
 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 */
#include <stdio.h>

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