Re: [cc65] Initialize an array os structs

From: Carlos <shangri-la1teleline.es>
Date: 2011-01-06 02:05:13
That works!, had always used the first way without problems...(with other 
compilers)

Thks


----- Original Message ----- 
From: "Johan Kotlinski" <kotlinski@gmail.com>
To: <cc65@musoftware.de>
Sent: Thursday, January 06, 2011 1:57 AM
Subject: Re: [cc65] Initialize an array os structs


> FOO test[] = {2, 5, 1, 4};

This is valid C:

FOO test[] = { { 2, 5 }, { 1, 4 } };

Regards,
Johan
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


-----
No se encontraron virus en este mensaje.
Comprobado por AVG - www.avg.com
VersiĆ³n: 10.0.1191 / Base de datos de virus: 1435/3362 - Fecha de 
publicaciĆ³n: 01/05/11


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Jan 6 02:05:23 2011

This archive was generated by hypermail 2.1.8 : 2011-01-06 02:05:26 CET