Is there a way to use the C sprintf() function without it adding a \'\\0\' character at the end of its output? I need to write formatted text in the middle of a fixed width stri
look here: http://en.wikipedia.org/wiki/Printf
printf("%.*s", 3, "abcdef") will result in "abc" being printed