From mint-bounce@lists.fishpool.fi Sun May 24 19:22:49 2009 X-SourceIP: 77.249.75.204 Message-ID: <4A19CAC1.20206@chello.nl> Date: Mon, 25 May 2009 00:31:29 +0200 From: Henk Robbers User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "[MiNT] Mailing-List" Subject: Re: [MiNT] anonymous structs and C99 References: <4A19BBD3.8060409@freesbee.fr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: h.robbers@chello.nl Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Miro Kropacek wrote: > Yes but it involves that 'u' everytime, If you hate typing so much, then why do you type meaningles names like pointer1 & pointer2 My advice is: union { char *b; int *i; // long *l; // unsigned int *u; // etcetera } p; the names are long enough because they are local to a struct; The more local a name, the shorter it can be. -- Groeten; Regards. Henk Robbers. http://members.chello.nl/h.robbers Interactive disassembler: TT-Digger; http://digger.atari.org A Home Cooked C compiler: AHCC; http://ahcc.atari.org