mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
182 B
11 lines
182 B
#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);
|
|
|