I need to concatenate a string with a dynamic part (don't know what the %d's and it's likes are called)... And exactly the fact that I don't know the name of what I'm trying to do is what makes so hard to google it :)
What I wan't to look something like this in my head:
The code above won't work, but what will? I don't wan't to do a dozen of strcats either...
I hope somebody will point it out :)
Thanks in advance
What I wan't to look something like this in my head:
Code:
strcat(ret, "! [%d] %s", i, buf);
I hope somebody will point it out :)
Thanks in advance
Comment