ok...what it is saying now is that there is a problem with the top line
(highlighting in red)
ok...what it is saying now is that there is a problem with the top line
(highlighting in red)
Count the number of { and } in this post.Code:void printLib(struct lib *l ) { int i; for(i = 0;i < MAX_LENGTH;i++) printf("%s %s", myLib->collection[i]->author, myLib->collection[i]->title); } }
Quzah.
Hope is the first step on the road to disappointment.
Another change needs to be done in your searcher function.
You want to search for a book in a given library. So you only need one book parameter and iterate through the library just like you did in the print function and compare the b.title book with myLib->collection[i].title to see if they are equal.