Question: programming in c. please, need help Part 1: Strings and Arrays Part A For this part of the lab you will implement your own version

programming in c. please, need help
Part 1: Strings and Arrays Part A For this part of the lab you will implement your own version of the library function strst), with the following function signature: int myStrStr (char haystackl, char needleD, char bufferD): o Your function will take 3 strings, a 'haystack' string, a 'needle' string, and a 'buffer' string. You will search the 'haystack' string for a sequence matching the 'needle' string, and copy the found result from the 'haystack' string into the 'buffer (do not copy the 'needle' string). You should return a 1 if the matching sequence in the 'haystack' is found and a 0 if the 'needle' is not found. (You are required to implement your own logic for searching matches instead of using c library function). . Test your function with the following strings. o haystack "apple", needle-"app" haystack "orange", needle-"ge" . . haystack "blueberry", needle "ueber" - haystack "strawberry", needle "strawberry" haystack-"grapefruit", needle "terrible" o Within your main, after your function call, neatly print the 'haystack', 'needle', 'buffer from the myStrStr function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
