Manipulating 2D arrays and C-string?

I'm writing a program that output a string to the string a certain way.
The string: Once upon a time
The output has to be:
Once
upon
a
time
When it reads a space it paste to a new line
Last edited on
Without the complete code it's hard to tell.

Why not simply replace every space character by a newline character ?
Topic archived. No new replies allowed.