So I have a string called c. I am reading it in from a file using this:
fscanf(file, "%[^/0]", &c);
I have another variable declared as char* array[41]. I need this to be an array of the individual words/strings of c.
The issue is that I do not know how many individual words/strings will be in c, since I'm getting it as a whole line from a file. My idea was to put it into the array character by character and if it is white space i can replace it with null character, but I'm 95% sure that doesn't work at all. My other idea was if I could somehow know how many strings are in the line and capture each as a string to put in the array, but then I'm afraid it will mess with what comes after that line since I cannot be sure how many strings there are.