My input is from a file with multiple lines of text. After obtaining a line with fgets() how do I make an array containing the words from that line, which I can then iterate through? ie. from "pink floyd" to {"pink", "floyd"}.
int main() {
char line[500];
while(fgets(line, sizeof(line), stdin) != NULL) {
...
}
return 0;
}