in reply to printf and variables

Please tell your background/ objectives why you do not want to use the convinient design of printf. Maybe you should have a look at