Description: describe
There is a function strstr in C language. We write a similar function, mystrstr
int mystrstr(char a[], char b[]);
The function is to find the subscript of the first B string in string a, and if it is not found, return - 1.
input
Input two strings a and B respectively, occupying one line. The string length does not exceed 500 characters.
output
The subscript of the first B string that appears in string a.
Example
input
ABCA
A
output
Zero
To Search:
File list (Check if you may need any files):
Filename | Size | Date |
---|
设计strstr函数\描述.txt | 431 | 2019-11-03
|
设计strstr函数\设计strstr函数.c | 1719 | 2019-11-03
|
设计strstr函数 | 0 | 2019-11-03 |