I have the following code that should output;
1234 : abcd
However I get
1234abcd :
char string1[4];
sprintf(string1,"1234");
char string2[4];
sprintf(string2,"abcd");
sprintf(text_string,"%s : %s",string1,string2);
How can I get the sprintf to output in the correct order? I tried adding the " : " as a third string in the middle, but was still added to the end.