I need a function that split a string in c, i write the code and I checked it, I didn't get any errors or warnings, the code is :
int main()
{
cutString("any#any#any5") ;
return 0;
}
void cutString(char query[2000]) {
char * cut ;
cut = strtok(query , "#") ;
printf("%s" , cut);
}
But when I compile the program the compiler get stuck, without showing any output. This is a picture for run screen.