I am new in C programming, my training uses Redhat, Unix and I already spent my day searching for a solution. I know manipulating a string in C is difficult for me as beginner.
How can I split the string into individual words so I can loop through them?. Or convert a string into char array to be able to access individual elements.
char myString[] = "the quick brown fox";
To be exact i want to print each word of the said string into a fixed column and whenever the the string reached that number of column it will go to new line and print the sequence without splitting the word.
eg. print it within 12 columns only w/out splitting the word:
the quick
brown fox
and not:
the quick br
own fox
..TIA