is there a string equivalent of the sprintf function?

i want to do the equivalent of sprintf(temp,"number is: %d",num);