Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int mysubstring(char big[], char sub[])
- {
- int i,x,help;
- for(i=0;big[i]!='\0';i++)
- {
- for(x=0;sub[x]!='\0';x++)
- {
- if(big[x+i]==sub[x])
- {
- if(x+1==mystrlen(sub))
- return i;
- }
- else
- return -20;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement