Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
29f3202b731185d993a399f04d2f3e3f78db5a81
/
.
/
src
/
stdio
/
fgetpos.c
blob: 6eb361e1986b720a37f02932c4f32c52cc3a0b12 [
file
] [
log
] [
blame
]
#include
"stdio_impl.h"
int
fgetpos
(
FILE
*
restrict f
,
fpos_t
*
restrict pos
)
{
off_t
off
=
__ftello
(
f
);
if
(
off
<
0
)
return
-
1
;
*(
long
long
*)
pos
=
off
;
return
0
;
}
LFS64
(
fgetpos
);