Write formatted data to string.
Composes a string with the same text that would be printed if format was used on printf, but instead of being printed, the content is stored as a C string in the buffer pointed by str.
- Parameters
-
str | Pointer to a buffer where the resulting C-string is stored. The buffer should be large enough to contain the resulting string. |
format | String that contains text to be written to buffer. Can contain embedded format specifiers. |
... | Additional arguments |
- Returns
- Total number of characters written to buffer