Date: Sun, 29 Mar 1998 14:24:42 +0300 (IDT) From: Eli Zaretskii 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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).