I'm performing a simple sprintf :
let's say var2 is set to "hello world" (I've verified this is correct before the sprintf). The result of this is that var = "hello world,".Code:char var; sprintf(var, "%s", var2);
However, when I do this :
I get what I want : "hello world".Code:sprintf(var, "%s\n", var2);
Was I using sprintf improperly before?