title: Returning position of any character in the text
body: <p>The program is designed to return the position of the character in the table s2, in the text of Table S1. In case of failure it will a return -1.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #define RANGE 10
  
  int any(char [], char []);
  
  int main()
  {
      char s1[RANGE];
      char s2[RANGE];
      int i,j;
      while( (s1[i]=getchar()) != EOF);
      while( (s2[j]=getchar()) != EOF);
      printf("%d", any(s1, s2));
   }
  
   int any(char s1[], char s2[])
   {
   int i,j;
  
   for(i=0;s1[i]!='\0';i++)
      for(j=0;s2[j]!='\0';j++)
      {
          // for debug
          printf("\n%s", s1[i]);
          printf("\n%s", s2[j]);
          //
          if(s1[i]==s2[j])
              return i;
      }
   return -1;
   }
  </code></pre>
  
  <p>It seems to me that the problem occurs when comparing the characters in the tables.</p>
  
  <p>In this case, programme should return -1:
  <img src="https://i.stack.imgur.com/X8XuW.jpg" alt="enter image description here"></p>