summaryrefslogblamecommitdiff
path: root/src/stdio/fgetpos.c
blob: 5b663d1e172a887f052bfa44e0862558a040c2b8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                 
#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);