sprintf
 
Syntax


int sprintf (char *returnStr, char * format, ... );

Description


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 .
 

Example

sprintf (s, "x = %d", 33);   // will return x=33  in the string s

See also