??? 07/27/06 16:36 Read: times |
#121176 - thx, but Responding to: ???'s previous message |
1. since all your fields seem to be U8, instead of a structure, use a two-dimensional array, with symbolic constants (#define or enum) to access the individual fields of each sign; eg,
all_signs[sign_number][SER_NUM] Not useful, it exist in two places at the sign (one) at the controller (many). Also, this would oblitterate the advantage of a fixed 256 size. The advantage is there, describing it would be lenghty 2. use a union, with a "dummy" 256-byte array just to fix the size ` elegant, but will lead to code not much more straight than what I have. Thanks Erik |
Topic | Author | Date |
fixed size struct? | 01/01/70 00:00 | |
Not quite clear | 01/01/70 00:00 | |
thx, but | 01/01/70 00:00 | |
Confused! | 01/01/70 00:00 | |
the original question is \"can you define a struct | 01/01/70 00:00 | |
Possible in theory, but the code looks strange | 01/01/70 00:00 | |
figured the dummy out myself but that is the road | 01/01/70 00:00 | |
Doesn\'t have to look strange | 01/01/70 00:00 | |
got it, thanks | 01/01/70 00:00 | |
Aside - structure addressing | 01/01/70 00:00 | |
which is the case in one of the instances | 01/01/70 00:00 | |
nameless struct member![]() | 01/01/70 00:00 | |
union of structs | 01/01/70 00:00 | |
same as Andy | 01/01/70 00:00 | |
Pascal | 01/01/70 00:00 |