title: How to store value referenced with pointers in variables?
body: <p>Actually I have a string looking like this : <code>&quot;1,22,333,,55555,666666,7777777&quot;</code></p>
  <p>From this string I have created two array :</p>
  <ul>
  <li>One with the size of each parameter. For the given exemple it looks like this : <code>[1;2;3;0;5;6;7]</code></li>
  <li>The second with the pointer that reference the beginning of each parameter.
  For the given exemple it looks like this :</li>
  </ul>
  <pre><code>    [&quot;1,22,333,,55555,666666,7777777&quot;;
      &quot;22,333,,55555,666666,7777777&quot;;
      &quot;333,,55555,666666,7777777&quot;;
      &quot;,55555,666666,7777777&quot;;
      &quot;55555,666666,7777777&quot;;
      &quot;666666,7777777&quot;;
      &quot;7777777&quot;]
  </code></pre>
  <p>The parameters can change in length and in type but not in order.
  So i want to store them with typecasting for those concerned</p>
  <p>I have tested to <code>sscanf</code> each index of the pointer array but it seems not working</p>
  <pre><code>char* format = strcat(strcat(&quot;%&quot;, params_sizes[0]), &quot;u&quot;);
  strutest.un = sscanf(params_pointer[0], format);
  </code></pre>
  <p>Do you have any idea that can help me ?</p>