??? 07/27/06 16:18 Read: times |
#121171 - Not quite clear Responding to: ???'s previous message |
I'm not entirely sure what you're saying here!
for (num = min; num < max; num++) { xxx[num] ... }So 'xxx' is an array of 'SIGN_DESC' structures, yes? Two things spring to mind: 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] 2. use a union, with a "dummy" 256-byte array just to fix the size |
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 |