Question: This is a function I need help creating. The Title and genre are C strings that get stored in a doubly linked list. The title

This is a function I need help creating. The Title and genre are C strings that get stored in a doubly linked list. The title and Genre can only be 30 character long.

  • Create the findMovie() function. It returns NULL if a movie is not found or it returns a pointer to the node containing a movie, if both the title and genre are matched (with a case-sensitive match, so you can use strcmp for this). It takes three parameters:
  • MovieNode *head: head of list
  • char *genre: pointer to null-terminated string containing genre
  • char *title: pointer to null-terminated string containing title
    • If only the genre or the title are found but both are not found in the same node, the movie is not found.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!