Structure alignment problem
Mon Nov 4 08:34:00 GMT 2002
On Mon, Nov 04, 2002 at 04:10:03PM +0000, Yves Rutschle wrote:
> On Mon, Nov 04, 2002 at 09:05:15AM -0600, Grant Edwards wrote:
> > I beat my head against that one for a couple days and never
> > figured it out. I asked on the gcc mailing list and all I got
> > were adminishments for trying to use structs to layout data in
> > an externally defined manner.
> How else can you do it? Sprintf everything as text? :-)
Use memcpy() to transfer data to and from an array of unsigned
chars at hard-wired offsets.
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to email@example.com
More information about the crossgcc