PaulS,
Thanks for your reply.
Why on earth are you pissing away resources using a String?
Maybe not everybody (ok, me) is as experienced as you. I come here asking for help and hoping to learn, not to get flamed for doing something the wrong way. I am doing it that way because I don't know how else to do it. In addition, they are my resources to piss away.
The last part of your statement makes no sense
Ok, me being not overly intelligent here, but what statement? The 'statement' in the code? The third line? What don't you understand?
There is a chance, and that would be a very high chance that I don't know what I am doing and don't know how to ask the question correctly due to my lack of experience.
May I very politely suggest that, as your reply to my post is absolutely useless to me (has not answered anything at all) that you refrain from replying unless you are actually going to answer the question, or ask for clarification so you can better understand the question?
Really sorry for my rant.
After all that, I believe I need to use vsprintf instead of sprintf.