codice:
char str[]="this\nis\na\ntest\nof\nstring\ntokenizing";
char *str1;

// primo token
str1 = strtok(str, "\n");

while (1) {
  // successivo token
  str1 = strtok(NULL, "\n");

  /* check if there is nothing else to extract */
  if (str1 == NULL) {
    printf("Tokenizing complete\n");
    break;
  }
}
devi solo mettere i token in un array