Name: VIPPER 2011-02-16 12:08
Hi /prog/.
I know /prog/ does not like help threads but this one is a ballbuster(atleast for me).
Anyways, i have a struct that looks like this:
Now i dont know how to assign something to the
I looked up K&R and the Cbook but all i got was this:
I think you can guess what i want to do looking from the code.
I know /prog/ does not like help threads but this one is a ballbuster(atleast for me).
Anyways, i have a struct that looks like this:
struct hash_entry {
sdr he_Data, he_Symbol;
};
struct hash_index {
u32 hi_Hash, hi_NumEntries;
struct hash_entry **hi_Entries;
};
struct hash_table {
u32 ht_NumEntries;
struct hash_index ht_Indeces[];
}; or this if you prefer.
struct hash_table {
u32 ht_NumEntries;
struct {
u32 hi_Hash, hi_NumEntries;
struct {
sdr he_Data, he_Symbol;
} (*hi_Entries)[];
} ht_Indeces[];
};Now i dont know how to assign something to the
hi_Entries[x]->he_Data or he_Symbol.I looked up K&R and the Cbook but all i got was this:
((struct hash_entry*)(*FX->ht_Indeces[0].hi_Entries)[0])->he_Symbol = Key; but GCC gives cannot convert to a pointer typeI think you can guess what i want to do looking from the code.