title: C Program - How to get the second occurrence in strtok()?
body: <p>I have a text file like this:</p>
  
  <pre><code>/www/test.php = 24323
  </code></pre>
  
  <p>with <code>strtok(myfile," = ")</code> it only prints the first occurrence which is <code>/www/test.php</code>, how can I print the second occurrence which is <code>24323</code> ?</p>
  
  <p><strong>NEW PROBLEM:</strong></p>
  
  <pre><code>char * name;
  char *def_size;
  name = strtok (line," = ");
  def_size = strtok(NULL, " = ");
  stat(name, &amp;st);
  if (st.st_size != def_size) {
      printf("File size doesn't match\n");
  }
  </code></pre>
  
  <p>When I compile that, I get:</p>
  
  <blockquote>
    <p>test.c: In function ‘main’: test.c:23:24: warning: comparison between
    pointer and integer
             if (st.st_size != def_size) {
                            ^~</p>
  </blockquote>
  
  <p>How do I fix this ? Sorry I'm really new to C programming</p>