Conversation
There was a problem hiding this comment.
Please take note of the following text:
static char *array_token[1024];Upon inspection of the aforementioned line, I noticed that it would be better to allocate only the necessary amount of memory for tokenizing strings. Therefore, please adjust your solution to determine the precise amount of memory needed for the string that requires tokenizing.
Additionally, I would like to know if you have tested your function and what your findings were. I noticed a few bugs and I'm interested to know if you can confirm that your solution works.
Furthermore, I observed that your solution lacks memory deallocation for the temporary variable used. Also, you do not allocate memory for each token. As a result, your solution requires further work. However, I am willing to see how it performs based on your testing.
A team solution of breaking a string into substrings using the strtok function.