I can help you with two errors.
FIRST
main.c:11: error: syntax error before '%' token
When you use fscanf the format must be as a string of characters: between quotes.
while(y = fscanf(p, %c, &(item.key))!EOF);
SECONDprintlist.c:11: error: request for member `data' in something not a structure or union
If you want to call a member from a pointer of your structure you have to use '->' instead of a '.' when you call "data":
printf("%3c", pWalker->data.key);//>>> pWalker->data.key <<<<
teo236
Junior Poster in Training
73 posts since Jul 2011
Reputation Points: 20
Solved Threads: 10
I think this problem is in the function insertNode. The parameters of this function aren't the same of the ones you are using or the return value isn't a pointer. There are many posible errors.
check your code again!
teo236
Junior Poster in Training
73 posts since Jul 2011
Reputation Points: 20
Solved Threads: 10