Advertisement
Guest User

Untitled

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