Date: Sun, 4 Oct 1998 13:09:44 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Sigurdur Smarason cc: djgpp AT delorie DOT com Subject: Re: newbie:problem with fread In-Reply-To: <6v4386$c7t$1@news3.tufts.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 3 Oct 1998, Sigurdur Smarason wrote: > I'm trying to read a binary file by passing a struct to fread, and > everything seems ok except when there is an odd number of shorts between > longs, then it skips two bytes after reading the short, then reads the > next long. Was the struct written with a program compiled with DJGPP? If not, please see section 22.10 of the DJGPP FAQ list.