projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
reduce spurious inclusion of libc.h
[musl]
/
src
/
stdio
/
fgetpos.c
1
#include "stdio_impl.h"
2
#include "libc.h"
3
4
int fgetpos(FILE *restrict f, fpos_t *restrict pos)
5
{
6
off_t off = __ftello(f);
7
if (off < 0) return -1;
8
*(long long *)pos = off;
9
return 0;
10
}
11
12
LFS64(fgetpos);