Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
0c8bc102f287d3993751d80ba2dffb01e0c8bc7f
/
.
/
src
/
stdio
/
fgetpos.c
blob: c3fa0eb0af42982153d5222a7b76e51f941e941e [
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
;
*(
off_t
*)
pos
=
off
;
return
0
;
}
LFS64
(
fgetpos
);