2011-02-12 00:22:29 -05:00
|
|
|
#include "stdio_impl.h"
|
|
|
|
|
2012-09-06 22:44:55 -04:00
|
|
|
int fgetpos(FILE *restrict f, fpos_t *restrict pos)
|
2011-02-12 00:22:29 -05:00
|
|
|
{
|
|
|
|
off_t off = __ftello(f);
|
|
|
|
if (off < 0) return -1;
|
|
|
|
*(off_t *)pos = off;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
LFS64(fgetpos);
|