title: C: searching for a string in a file
body: <p>If I have:</p>
  
  <pre><code>const char *mystr = "cheesecakes";
  FILE *myfile = fopen("path/to/file.exe","r");
  </code></pre>
  
  <p>I need to write a function to determine whether <code>myfile</code> contains any occurrences of <code>mystr</code>. Could anyone help me? Thanks!</p>
  
  <p>UPDATE: So it turns out the platform I need to deploy to doesn't have <code>memstr</code>. Does anyone know of a free implementation I can use in my code?</p>