From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <2e567163be1a7bcfb00188625bc09359@collyer.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] structure allocation. Date: Mon, 6 Mar 2006 18:37:52 -0800 From: geoff@collyer.net In-Reply-To: <20060307023001.3706311735@dexter-peak.quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 0d6e2daa-ead1-11e9-9d60-3106f5b1d025 You declare it like this: typedef struct { char f; uchar l[4]; char g; uchar m[4]; } Dac960fu; and convert l and m using the usual integer-to-bytes and bytes-to-integers macros or functions, presumably the little-endian versions. Mylex were crazy to lay the data out this way.