1 /* $Id: ftello.c 3681 2000-07-29 22:55:18Z rra $
3 ** Replacement for a missing ftello.
5 ** ftello is a version of ftell that returns an off_t instead of a long.
6 ** For large file support (and because it's a more logical interface), INN
7 ** uses ftello unconditionally; if ftello isn't provided by a platform but
8 ** fpos_t is compatible with off_t (as in BSDI), define it in terms of
9 ** fgetpos. Otherwise, just call ftell (which won't work for files over
23 if (fgetpos(stream, &fpos) < 0) {
30 #else /* !HAVE_LARGE_FPOS_T */
35 return (off_t) ftell(stream);
38 #endif /* !HAVE_LARGE_FPOS_T */