Gitiles
Code Review
Sign In
android-review.linaro.org
/
platform
/
external
/
syslinux
/
refs/heads/oreo-m6-s2-release
/
.
/
com32
/
lib
/
sys
/
ftell.c
blob: 5c1a94428ca28a651b2571a8fa863613b7060e2e [
file
] [
log
] [
blame
]
/*
* sys/ftell.c
*
* We can't seek, but we can at least tell...
*/
#include
<stdio.h>
#include
"sys/file.h"
long
ftell
(
FILE
*
stream
)
{
int
fd
=
fileno
(
stream
);
struct
file_info
*
fp
=
&
__file_info
[
fd
];
return
fp
->
i
.
offset
;
}