21.12.2015, 10:21
That's the naive approach, quite resource heavy and also quite crappy (sorry).
Use ONE temporary string to format one line at a time and then immediately use strcat to glue it to the result.
Use ONE temporary string to format one line at a time and then immediately use strcat to glue it to the result.