Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: c programming q

Author: Leen Ammeraal

Date: 22:06:21 05/08/03

Go up one level in this thread


On May 08, 2003 at 21:00:46, Zach Wegner wrote:

>In my program, I have the move data structure:
>typedef struct
>{
>    union
>    {
>        struct
>        {
>            char from;
>            char to;
>            char bits;
>            char piece;
>        };
>        unsigned int move;
>    };
>    unsigned int score;
>} SMOVE;
>
>Is there any specific order in which the chars are aligned into the int, or is
>it compiler-dependent?
>
>Zach

It is compiler dependent.
Leen




This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.