Hi,
I need help implementing an array of linked lists. My code is as follows:
List structure:
Code:
typedef struct L
{
char field[50];
struct L *next;
} List;
Then to create the array of Lists, and pass it to another function, I'm using:
Code:
List *t[100];
t = listArrayFunction(t);
With listArrayFunction as:
Code:
List **listArrayFunction(List **t)
{
printf("/n/nfillList called/n/n");
return t;
}
Now I know I've made a mess with the *'s somewhere, as I get an error "Incompatible types in assignment" on the line t = listArrayFunction(t);
Could someone help me with this?
Thanks for your help in advance.