www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/29/08:38:50

Date: Sun, 29 Mar 1998 14:24:42 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: leger_v AT bluewin DOT ch
cc: djgpp AT delorie DOT com
Subject: Re: Problem fread and structures
In-Reply-To: <351BF0B2.6AC2@bluewin.ch>
Message-ID: <Pine.SUN.3.91.980329142357.15237N-100000@is>
MIME-Version: 1.0

On Fri, 27 Mar 1998 leger_v AT bluewin DOT ch wrote:

> Why when I use fread(&samplestruct, sizeof(samplestruct), 1, stream);
> The structure samplestruct contains false data. And when I compile my
> program whith Borland C++ the program works fine ?

This is explained in some detail in section 22.9 of the DJGPP FAQ list
(v2/faq210b.zip from the same place you get DJGPP).

- Raw text -


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