Question: A list of strings is built using the following struct: struct node { char data[8]; struct node *next; }; Define a function named findString that

A list of strings is built using the following struct: struct node { char data[8]; struct node *next; }; Define a function named findString that searches for a given string in a list. The first argument of the function is a pointer to the list. The second argument is a string (char*). Return 1 if a string that matches the 2nd argument is in the list; otherwise return 0. You may use strcmp() to compare strings, and you may assume that all necessary header files have been included.

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!