Hi, I am new to this board and rubbish at C so please be kind!
Im trying to initialise a hash table but am having trouble allocating memory for it. Can you please have a look and see where I've slipped up?
THe info structure is defined as
void Initialize(Table T)
T = calloc(TableSize,sizeof(TableEntry));
T[i].Info.Actor = calloc(1, sizeof(TableSize));
T[i].Info.Films = calloc(1, sizeof(TableSize));
T[i].Info.Films[j] = calloc(1, sizeof(TableSize));
And the table entry
Thanks in advance
typedef TableEntry Table[TableSize];