From: sos@prospect.com.ru (Sergey Okhapkin)
Subject: RE: fread/fwrite problems in b18
3 Jun 1997 01:44:11 -0700
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <01BC700F.B549BC20.cygnus.gnu-win32@gater.krystalbank.msk.ru>
Original-To: "gnu-win32@cygnus.com" <gnu-win32@cygnus.com>,
        "'Bala Amavasai'"
	 <B.Amavasai@sheffield.ac.uk>
Encoding: 21 TEXT
Original-Sender: owner-gnu-win32@cygnus.com

Bala Amavasai wrote:
> 
> Hi! I wonder if anyone can help.  I've written a short program to remove a
> fix sized header (of 512 bytes) from a raw image file. However when I
> compile it and run under gcc b18, I do not get the output I expect. That
> is the output file size is always 30 bytes. The same code compiles and
>         /* image file */
>         if ((infile=fopen(argv[1],"r"))==NULL)

fopen(argv[1], "rb")

>         /* create temp file */
>         if ((outfile=fopen("outfile","w"))==NULL)

fopen("outfile","wb")

-- 
Sergey Okhapkin
Moscow, Russia
Looking for a job.


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
