C Programming Question

1- Write a function called same_in() that takes two string pointers as
arguments. If the second string is contained in the first string, have the
function return the address at which the contained string begins. For
instance, same_in(“great”, “eat”) would return the address of the e in eat.
Otherwise, have the function return the null pointer. Test the function in
a complete program that uses a loop to provide input values for feeding
to the function. Write the code in a way that the loop continues until the
user quit. For example, I should be able to test two sets of strings in one
running of the code and then quit the program.

Powered by WordPress