title: Infinte loop (strstr)
body: <p>I have an infinite loop inside this method because of the strstr function. Is it because I'm matching a struct type to a char type?</p>
  
  <pre><code>car* find(char* type){
  
      car* stringCurr = list_head();
      while(stringCurr != NULL){
          if(strstr(stringCurr-&gt;info, type)){  //This line
             return stringCurr;
          }
      }
    return NULL;
  }
  </code></pre>
  
  <p>Struct:</p>
  
  <pre><code>typedef struct Machine{
  
    char info[128];
    struct Machine* next;
  
  }car;
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>The goal is to make a search function and return NULL if the object is found in the list</p>