So does this code adequately satisfy this question?
Write a function named tokenize() that will receive the following parameters: a char * to the string to tokenize, and a char * [] that will receive pointers to all of the tokens generated, in their order of generation. The function will return the number of tokens found in the string provided. The variable names you choose matter.
int tokenize (char * array, char * results[])
{
int count;
while (strlen(array))
{
count = 0;
if(results[0] = strtok(array, "\t"))
count++;
while (results[count] = strtok(NULL, "\t"))
count++;
}
return count;
}