delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/04/07:46:59

Date: Sun, 4 Oct 1998 13:09:44 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Sigurdur Smarason <ssmaraso AT emerald DOT tufts DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: newbie:problem with fread
In-Reply-To: <6v4386$c7t$1@news3.tufts.edu>
Message-ID: <Pine.SUN.3.91.981004130926.1863m-100000@is>
MIME-Version: 1.0

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019