Question: language is in C Exercise 3.28. Implement the following specification: 3.2. Strings am 11/* Returns whether str contains an instance of substr. 2 * Returns

language is in C
Exercise 3.28. Implement the following specification: 3.2. Strings am 11/* Returns whether str contains an instance of substr. 2 * Returns 0 if either str or substr is NULL or substr is * not in str; returns 1 if substr is in str. 4 */ 5 int has Substring (char * str, char * substr); For example, hasSubstring("Hello universe!", "verse") should return 1. Use the following main function to test your code: BODOV AWN #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
