title: Split string with multiple delimiters using strtok in C
body: <p>I have problem with splitting a string. The code below works, but only if between strings are ' ' (spaces). But I need to split strings even if there is any <em>whitespace</em> char. Is <code>strtok()</code> even necessary? </p>
  
  <pre><code>char input[1024];
  char *string[3];           
  int i=0;
  
  fgets(input,1024,stdin)!='\0')               //get input
  {                                        
    string[0]=strtok(input," ");               //parce first string
    while(string[i]!=NULL)                     //parce others
    {
       printf("string [%d]=%s\n",i,string[i]);
       i++;
       string[i]=strtok(NULL," ");
    }
  </code></pre>