This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Problem with fsetpos
- To: <fseibel at cfa dot harvard dot edu>
- Subject: Re: Problem with fsetpos
- From: "Colin Peters" <colin at bird dot fu dot is dot saga-u dot ac dot jp>
- Date: Mon, 24 Nov 1997 12:48:11 +0900
- Cc: "GNU-Win32" <gnu-win32 at cygnus dot com>
- Reply-To: "Colin Peters" <colin at bird dot fu dot is dot saga-u dot ac dot jp>
From: Earnie Boyd <earnie_boyd@hotmail.com>
Date: Saturday, November 22, 1997 12:17 PM
>>From: "Fred Seibel" <fseibel@cfa.harvard.edu>
>>To: <gnu-win32@cygnus.com>
>>Date: Thu, 20 Nov 1997 08:20:40 -0500
[snip]
>>This error can be detected by inspection using gdb.
>>Open a text file a trivial program.
>>
>>main(){
>>fp = fopen("foo.txt", "r");
>>fsetpos(fp, 2000L, SEEK_SET);
[snip]
>
>This looks like the infamous Y2K problem to me. ;^} Ha, Ha, Ha.
:-) What he really means is change
fp = fopen("foo.txt", "r");
to
fp = fopen("foo.txt", "rb");
(or, possibly, mount the directory as text=binary).
Colin.
-- Colin Peters -- colin at fu.is.saga-u.ac.jp
-- Saga University Dept. of Information Science
-- http://www.fu.is.saga-u.ac.jp/~colin
-- http://www.geocities.com/Tokyo/Towers/6162
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".