Write a program that requests a string and a substring from the user and reports the
location of the first occurrence of the substring in the string. Write a C main program to
receive the two strings from the user. Have the C main program then call an assembly
language procedure to find the location of the substring. This procedure should receive two pointers to strings string and substring and search for substring in
string. If a match is found, it returns the starting position of the first match. Matching should be case-sensitive. A negative value should be returned if no match is found.
For example, if
string = Good things come in small packages.
and
substring = in
the procedure should return 8, indicating a match of in in things.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here