Hey, I was writing a program that is supposed to tokenize strings. I've got it to where the code looks for a delimiter and then uses that to store each part of the string into an array. However when it is compiled and run, for example using string "pickle, company, arm, military, chinese, example," I get things such as 'arm, (' or 'military, v[u[foreign letter]F' Below is the code I've written thus far. Help would be appreciated.
Tokens* createTokens(String* str, char delimiter)
{
int start_size = 1;
Tokens* tokens = initTokens(start_size);
int size = find(str, delimiter, start_size);