Question: The Image I have provided is the given structure that makes a strings _ array parameter. I need help with manipulating the data made from

The Image I have provided is the given structure that makes a strings_array parameter. I need help with manipulating the data made from this datatype: strings_array *data.The example with testing data. Below that is the structure I am coding and working with.
Complete and test the strings_with_substring function according to its description in the functions.h file. You may loop through strings with either array syntax or pointer arithmetic. Example: if strings consists of
First line
Second line
Third line
and substr is Second, then the function prints:
Second line
/**
* Traverses every string in strings and prints the strings that contain substr. Case must match.
*
* @param data - the strings_array struct to traverse
* @param substr - the substring to look for in each string
*/
void strings_with_substring(strings_array *data, char *substr);
 The Image I have provided is the given structure that makes

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 Programming Questions!