bool StrTokenizeToBuffer(
char * buffer, // out
int bufferChars, // in
constchar ** string, // in-out
constchar * delimiters // in
)
{
int n;
int i = 0;
n = sizeof(*string);
bufferChars = sizeof(buffer);
buffer = newchar[bufferChars];
// This is not working but I realized that This is the bigO(n); I still am trying to think of a way to do better than this
* string = newchar[n];
while (string != NULL && i < n)
{
int i = 0;
int count = 0;
if (*string[i] == ' ' || *string[i] == '\n')
break;
if (*(string[i]) != *(delimiters))
{
continue;
}
buffer[count] = *(string[i]);
//return true;
count++;
i++;
}
returnfalse;
}