Quick String Format Question (EASY)
Let's say you want to format the Strings:
And you wanted to format these strings to 15 spaces, so have them like up like
And after 15 spaces, you wanted the next word to start. Is there a format type command that you can use, such as
printf ("%15d", int value) to get this accomplished.
Because right now, I'm traversing each string and adding a space whenever it sees a terminating character '\0'.
Is there no easier way?