mirror of
https://github.com/fluencelabs/musl
synced 2025-04-25 07:12:15 +00:00
12 lines
164 B
C
12 lines
164 B
C
|
#include "stdio_impl.h"
|
||
|
|
||
|
int fgetpos(FILE *f, fpos_t *pos)
|
||
|
{
|
||
|
off_t off = __ftello(f);
|
||
|
if (off < 0) return -1;
|
||
|
*(off_t *)pos = off;
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
LFS64(fgetpos);
|