From 93758f1c10630b0a574922bb2a2fa884b9438aa3 Mon Sep 17 00:00:00 2001 From: jshepher <> Date: Mon, 20 Dec 2004 01:49:07 +0000 Subject: [PATCH] Moved the right functions into the right files. --- libnix/sources/nix/stdio/fgetpos.c | 4 ++-- libnix/sources/nix/stdio/fsetpos.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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); }