title: Double pointer to char[]
body: <p>Alright, so I have the following code: </p>
  
  <pre><code>char** args = (char**)malloc(10*sizeof(char*));
  memset(args, 0, sizeof(char*)*10);
  
  char* curToken = strtok(string, ";");
  
  for (int z = 0; curToken != NULL; z++) {
      args[z] = strdup(curToken);
      curToken = strtok(NULL, ";")
  }
  </code></pre>
  
  <p>I want every <code>arg[z]</code> casted into an array of chars -- char string[100] -- and then processed in the algorithms I have following. Every <code>arg[z]</code> needs to be casted to the variable string at some point. I am confused by pointers, but I am slowly getting better at them.</p>
  
  <p>EDIT:</p>
  
  <pre><code>char string[100] = "ls ; date ; ls";
  </code></pre>
  
  <p><code>arg[0]</code> will be ls, <code>arg[1]</code> will be date, and <code>arg[2]</code> will be ls after the above code.</p>
  
  <p>I want to put each argument back into char string[100] and process it through algorithms. </p>