Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int contida (char a[], char b[]) {
- int i=0,j=0,s1=0,s2=0;
- for(s1;a[s1];s1++);
- for(s2;a[s2];s2++);
- if(s1>s2) return 0;
- else{
- for(j;b[j]!='\0'&&a[i]!='\0';j++){
- if (a[i]==b[j])
- i++;
- else
- i=0;
- }
- if(a[i] =='\0') return 1;
- else return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement