X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Fri, 08 Feb 2002 15:07:41 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-Id: <4727-Fri08Feb2002150740+0200-eliz@is.elta.co.il> X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <0BA32251E589D2118EA60008C70DDCAB025F91A5@JNJFRISEXS1.eu.jnj.com> (CBARIBAU AT jnjfr DOT JNJ DOT com) Subject: Re: Alignment problem References: <0BA32251E589D2118EA60008C70DDCAB025F91A5 AT JNJFRISEXS1 DOT eu DOT jnj DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Baribaud, Christophe [JNJFR]" > Date: Fri, 8 Feb 2002 10:50:33 +0100 > > >This has nothing to do with the compiler: malloc is implemented in > >the library. > > Yes, of course, but what I wanted to explain is that it is generally > dangerous to assume that malloc returns aligned memory when writing > portable code. No, it isn't dangerous, since the standard requires malloc to behave that way.