☰
Debian Codegraph
@
0.0~git20260129.ec0effd-3
0.0~git20260129.ec0effd-2
/
/
libc-top-half
/
musl
/
src
/
stdio
/
fgetpos.c
☽
☼
libc-top-half/musl/src/stdio/fgetpos.c
code
plain
raw
MIT
2005-2019 Rich Felker <
[email protected]
>; 2005-2019 Many other contributors
debian/copyright
1
#include "stdio_impl.h"
2
3
int fgetpos(FILE *restrict f, fpos_t *restrict pos)
4
{
5
off_t off = __ftello(f);
6
if (off < 0) return -1;
7
*(long long *)pos = off;
8
return 0;
9
}
10
11
weak_alias(fgetpos, fgetpos64);