Advertisement
Guest User

Untitled

a guest
May 29th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. int mysubstring(char big[], char sub[])
  2. {
  3. int i,x,help;
  4. for(i=0;big[i]!='\0';i++)
  5. {
  6. for(x=0;sub[x]!='\0';x++)
  7. {
  8. if(big[x+i]==sub[x])
  9. {
  10. if(x+1==mystrlen(sub))
  11. return i;
  12. }
  13. else
  14. return -20;
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement