title: How to search a string in a char array in C?
body: <p>For example I have:</p>
  
  <pre><code>char buff[1000];
  </code></pre>
  
  <p>I want to search if the string "hassasin" is in that char array.  Here is what I have tried.</p>
  
  <pre><code>char word[8] = "hassasin";
  char Buffer[1000]=sdfhksfhkasd/./.fjka(hassasin)hdkjfakjsdfhkksjdfhkjh....etc 
  int k=0;
  int t=0; 
  int len=0; 
  int sor=0; 
  for (k=0; k&lt;1000; k++){ 
      for (t=0; t&lt;8; t++){ 
          if (Buffer[k]==word[t]) len++; 
          if (len==8) "it founds 0.9.1" 
      } 
  }
  </code></pre>