Problem with fsetpos

dahms@ifk20.mach.uni-karlsruhe.de dahms@ifk20.mach.uni-karlsruhe.de
Fri Nov 21 16:12:00 GMT 1997


Hi Fred, you wrote:

: I have discovered that fsetpos with values of offset greater than ~ 2000L
: misses the corrrect value.  The
: error is 16 at 2000 and 179 at 10000.  I am running WindowsNT 4.0
: Workstation, with Service Patch 3.
: I am running b18.

I bet you are using a text (not binary) mount, and you are missing CRs.
I guess you want calculate position using line size, but IIRC it is only
portable to use fsetpos on values previously obtained from fgetpos
(directly, on the same platform, not stored in an index file and copied).
Same applies to seek/tell.


Bye, Heribert (dahms@ifk20.mach.uni-karlsruhe.de)
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list