Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started