title: strstr will not return a true value
body: <p>I am working on this example in a C programming book and the strstr command is supposed to trigger the printf command when the value is true. It is trying to find a string within tracks and return which track it was found in. I have palyed around with this for over an hour and cant seem to find what is wrong. Currently it is not printing anything even when there is supposed to be a match.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  char tracks[][80] = {
          "Boston",
          "Where the Streets Have No Name",
          "Row Row Row your Boat",
          "Gangsta Paradise",
          "Yoda",
      };
  
  
  void findTrack(char searchFor[]){
      int i;
      for(i = 0; i &lt; 5; i++){
          if(strstr(tracks[i], searchFor))
              printf("Track %i: '%s'\n", i, tracks[i]);
  
      }
  }
  
  int main(){
  
      char searchFor[80];
      printf("what is your string?: ");
      fgets(searchFor, 80, stdin);
      printf("searching for: %s", searchFor);
      findTrack(searchFor);
  
      return 0;
  }
  </code></pre>