Imparte un string dupa niste delimitatoare
Exemplu:
#include <iostream>
#include <string.h>
using namespace std;
int main(){
char str[] ="test*test2-test3";
char * pch;
pch = strtok(str,"*-");
while(pch!=NULL){
cout<<pch<<"\n";
pch = strtok(NULL, "*-");
}
return 0;
}