title: getting no output (expecting boolean output)
body: <p>So I tried not using the string.h file. I created string length function which works. I then created a function to check if two functions are same or not but I am getting no output.
  I have tested the string length function and that works. I am not sure what I am doing wrong in the second function. Please point out the error.</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;stdbool.h&gt;
  
  char stringLength(char userString[])
  {
      int i=0,count=0;
      while (userString[i] != '\0')
      {
          count = (count + 1);
          i = (i + 1);
      }
      return count;
  
  }
  
  
  bool stringCheck (char a[], char b[])
  {
      bool isEquals = false;
      if (stringLength(a) == stringLength(b))
      {
          int i=0, count=0;
          while (i&lt;stringLength(a))
          {
              if (a[i] == b[i])
              {
                  count+=1;
              }
  
              i+=1;
          }
  
          if (count == stringLength(a))
              isEquals = true;
          else
              isEquals = false;
      }
      else
          isEquals = false;
  
      return isEquals;
  }
  
  int main()
  {
      stringCheck(&quot;abcd&quot;, &quot;abcd&quot;);
      return 0;
  }
  </code></pre>