title: How should I use strcmp() to check whether a string is found in a larger string?
body: <p>The problem is pretty simple. I have to check whether a string is a substring of a string or not.</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  int main() {
      char *a = &quot;Aristotle was not a good a philosopher&quot;;
      int i = 1;
      if (strcmp(a, &quot;good&quot;) &lt; 0) {
            return i;
      }
      return 0;
  }
  </code></pre>