i want to make tokenize a function so that i could reuse it everytime there's a new string to be tokenized. i followed the code from the prelude but the tokenize mechanism is in the main function.
for example i got another string and I need to tokenize it, i don't want to write
allover again.Code:char *sep = strtok(toserver, DELIM); while (sep != NULL) { strcpy(parameters[ntokens++], sep); sep = strtok(NULL, DELIM); }
thanks/