diff --git a/libnix/sources/nix/stdio/fgetpos.c b/libnix/sources/nix/stdio/fgetpos.c index a7f4051..820c1fc 100755 --- a/libnix/sources/nix/stdio/fgetpos.c +++ b/libnix/sources/nix/stdio/fgetpos.c @@ -1,4 +1,4 @@ #include -int fsetpos(FILE *stream,fpos_t *pos) -{ return fseek(stream,*pos,SEEK_SET); } +int fgetpos(FILE *stream,fpos_t *pos) +{ *pos=ftell(stream); return 0; } diff --git a/libnix/sources/nix/stdio/fsetpos.c b/libnix/sources/nix/stdio/fsetpos.c index 820c1fc..a7f4051 100755 --- a/libnix/sources/nix/stdio/fsetpos.c +++ b/libnix/sources/nix/stdio/fsetpos.c @@ -1,4 +1,4 @@ #include -int fgetpos(FILE *stream,fpos_t *pos) -{ *pos=ftell(stream); return 0; } +int fsetpos(FILE *stream,fpos_t *pos) +{ return fseek(stream,*pos,SEEK_SET); }