Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!snorkelwacker!bloom-beacon!jfc From: jfc@athena.mit.edu (John F Carr) Newsgroups: comp.lang.c Subject: Re: Cast struct * --> double * --> struct * Portable ? Message-ID: <1990Oct12.172254.17480@athena.mit.edu> Date: 12 Oct 90 17:22:54 GMT References: <588@dptechno.UUCP> Sender: daemon@athena.mit.edu (Mr Background) Organization: Massachusetts Institute of Technology Lines: 13 In article meissner@osf.org (Michael Meissner) writes: >In fact if you want the >strongest alignment requirement within ANSI, it must have a member >whose type is `long double'. I don't think ANSI guarantees any alignment requirements except that nothing is less strictly aligned than (void *) and nothing is more strictly aligned than the return value of malloc(). I don't know of any machine which aligns integers more strictly than doubles, but I see nothing in ANSI C to prohibit this. -- John Carr (jfc@athena.mit.edu)