10l: comparison of char* ptrs with string literals
[mplayer.git] / osdep / ftello.c
blobd11710b89fbed316c5d6bf059c1a7087e07fce20
1 /*
2 * ftello.c
3 * 64-bit version of ftello() for systems which do not have it
4 */
6 #include "config.h"
8 #include <stdio.h>
9 #include <sys/types.h>
11 off_t
12 ftello(FILE *stream)
14 fpos_t floc;
16 if (fgetpos(stream, &floc) != 0)
17 return -1;
18 return floc;