title: Segmentation Fault when using strtok_r
body: <p>Can anyone explain why I am getting segmentation fault in the following example?</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  int main(void) {
    char *hello = "Hello World, Let me live.";
    char *tokens[50];
    strtok_r(hello, " ,", tokens);
    int i = 0;
    while(i &lt; 5) {
      printf("%s\n", tokens[i++]);
    }
  }
  </code></pre>