from printf to string

Hi,

I have the following line of the code. Now I want to save the content to a string. Is there a quick way for me to do the conversion using the same arguments/codes of printf?

printf ("Some different radixes: %d %x %o %#x %#o \n", 100, 100, 100, 100, 100);

Thanks

Chris
Last edited on
yes. i got memory lost earlier. thanks
You should use RAII so that won't happen any more :) Reference Analysis Is Important!
Topic archived. No new replies allowed.