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
Actually this example will not add a null if you use snprintf:
char name[9] = "QQ40dude"; unsigned int i0To100 = 63; _snprintf(&name[2],2,"%d",i0To100); printf(name);// output will be: QQ63dude