Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

use of strtok

#include <stdio.h>
#include <string.h>

int main ()
{
  char str[] ="test string.";
  char * test;
  test = strtok (str," ");
  while (test != NULL)
  {
    printf ("%s
",test);
    test= strtok (NULL, " ");
  }
  return 0;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #strtok
ADD COMMENT
Topic
Name
8+1 =