repo.or.cz
/
mplayer.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
10l: comparison of char* ptrs with string literals
[mplayer.git]
/
osdep
/
ftello.c
blob
d11710b89fbed316c5d6bf059c1a7087e07fce20
1
/*
2
* ftello.c
3
* 64-bit version of ftello() for systems which do not have it
4
*/
5
6
#include
"config.h"
7
8
#include <stdio.h>
9
#include <sys/types.h>
10
11
off_t
12
ftello
(
FILE
*
stream
)
13
{
14
fpos_t
floc
;
15
16
if
(
fgetpos
(
stream
, &
floc
) !=
0
)
17
return
-
1
;
18
return
floc
;
19
}