[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Initilizing complex const arrays : syntax ?
From: |
Vincent Trouilliez |
Subject: |
[avr-gcc-list] Initilizing complex const arrays : syntax ? |
Date: |
Sun, 18 Sep 2005 05:24:12 +0200 |
Hi,
I know how to initialize arrays with one dimension, like this :
const type variable[3] = {value1, value2, value3 };
but now I am having to initialize an array of structures, and I am getting lost
:-/ Here is my declaration :
ui.h
----
//data type for one engine parameter
struct param {
char desc[11]; //parameter name ("Engine Speed",
"Coolant Temp",...)
char unit[4]; //unit to be used ('%', "RPM", "°C",
"Bar" ...)
char format[6]; //printf format string: how to format
the number on the LCD
};
//table containing the definition for all engine parameters
extern const struct param param_list[30];
What's the syntax to initialize my "param" array above ?!
Thanks in advance... :-)
Regards,
--
Vince
- [avr-gcc-list] Initilizing complex const arrays : syntax ?,
Vincent Trouilliez <=
- Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?, Royce Pereira, 2005/09/17
- Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?, Jesper Hansen, 2005/09/18
- Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?, Anton Erasmus, 2005/09/18
- Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?, Jesper Hansen, 2005/09/18
- Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?, David Kelly, 2005/09/18
- Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?, Vincent Trouilliez, 2005/09/18
- Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?, gouy yann, 2005/09/18
- Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?, Vincent Trouilliez, 2005/09/18
- Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?, Jesper Hansen, 2005/09/18
- Re: [avr-gcc-list] Initilizing complex const arrays : syntax ?, Anton Erasmus, 2005/09/18