title: What is wrong with it? This example from Head First C, does not run as it should be. I've tested every part but I jus't can't it figure out
body: <pre><code>#include &lt;stdio.h&gt;
  
  #include &lt;string.h&gt;
  
  char tracks[][80] = {
      &quot;I left my heart in Harvard Med School&quot;,
      &quot;Newark, Newark - a wonderful town&quot;,
      &quot;Dancing with a Dork&quot;,
      &quot;From here to maternity&quot;,
      &quot;The girl from Iwo Jima&quot;,
  };
  
  void find_track(char search_for[]) {
  
    int i;
  
    for (i = 0; i &lt; 5; i++) {
  
      if (strstr(tracks[i], search_for))
  
        printf(&quot;Track %i: '%s'\n&quot;, i, tracks[i]);
    }
  }
  
  int main() {
  
    char search_for[80];
  
    printf(&quot;Search for: &quot;);
  
    fgets(search_for, 80, stdin);
  
    find_track(search_for);
  
    return 0;
  }
  </code></pre>