```
#include <stdio.h>
#include <string.h>

int lsearch(char a[],int l,int h,char p)
{
   int i=l;
   for(i=l;i<=h;i++)
      if(a[i]==p)
        return i;
      else
        return 0;
}

int main()
{
   int i,z;
   char s[100];
   scanf("%s",s);
   char str[100];
   scanf("%s",str);
   z=lsearch(s,0,strlen(s)-1,str[1]);
   printf("%d",z);
}

```

I want to search an element of the string str in the string s but when I'm trying to search anything(e.g. str[1]) in the string s, it returns 0