Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-tgr!tgr!jon@cit-vax.arpa From: jon@cit-vax.arpa (Jonathan P. Leech) Newsgroups: net.lang.c Subject: Portability Question Message-ID: <3509@brl-tgr.ARPA> Date: Fri, 22-Nov-85 19:51:52 EST Article-I.D.: brl-tgr.3509 Posted: Fri Nov 22 19:51:52 1985 Date-Received: Sun, 24-Nov-85 07:06:32 EST Sender: news@brl-tgr.ARPA Lines: 30 If I declare structures containing only one data type (doubles) like this: struct a { double pt[3], color[3]; }; struct b { double pt[3], color[3], normal[3]; }; is it safe to assume that they are equivalent in terms of alignment and size to arrays of equivalent contents, i.e. double a_dummy[6], b_dummy[9]; Harbison & Steele makes me believe this, but I'd appreciate any reliable information to the contrary. This question arises in the context of a routine which needs to operate on structures containing different amounts of information above a common base (polygon vertex location). Thanks, Jon Leech (jon@cit-vax.arpa) __@/