NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
void sprintf ( string &  str,
string  format,
variant  value 
)
inline

Write formatted data to string.

Writes a sequence of data formatted as the format argument specifies to a string. After the format parameter, the function expects one value argument.

Parameters
strThe string to write to.
formatA string specifying the desired format.
valueA value to be formatted for writing to the string.
Warning
This function requires the enhanced NBC/NXC firmware.
Examples:
ex_sprintf.nxc.