title: How to get the second string of the input
body: <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main(void) {
  
      char command[256];
      char *token;
      const char s[2] = " ";
  
      fprintf(stdout, "$ Please enter a command \n");
      fflush( stdout );
  
      fgets ( command, 256, stdin );
      token = strtok(command, s);
  
      if (strcmp(token, "loaddungeon") == 0){
          fprintf(stdout, "$ loaded successfully \n");
          fflush( stdout );
      }
  }
  </code></pre>
  
  <p>I am trying to use strtok to get the second string of the input. For instance, if the input is  "<code>loaddungeon dfile.txt</code>", what I want to get is the "<code>dfile.txt</code>". My function is able to get the string "<code>loaddungeon</code>". But I have no idea how to get the second string "<code>dfile.txt</code>". Can anyone tell me how to do it? </p>
  
  <p>(Consider the input is always "<code>loaddungeon dfile.txt</code>".)</p>