int sprintf (char *returnStr,
char * format, ... );
This routine will generate a
formated string using parametric
input.
The returnStr will be set to this formatted string, and the number of characters in that string are returned.
For format string details, see printf .