title: Fast way to tokenize a string in c
body: <p>I tried to use <code>strtok_r</code> but its slow.</p>
  
  <p>Now I have a c string as <code>"root.ahmed.andre"</code> and a fixed separtor as <code>'.'</code></p>
  
  <p>How would I write a faster search tokenizer using c ?</p>
  
  <pre><code>for (int i = 0;test[i] != 0; i++)
  {
      if (test[i] == '.')
      {
          . . .
      }
  }
  </code></pre>