Printf Implementation
Functionality similar to C standard printf
The MWX library provides an implementation similar to the commonly used
printf()
function in C.
int mwx_printf(const char* format, ...)
int mwx_snprintf(char* buffer, size_t count, const char* format, ...)
mwx_printf()
outputs formatted text to the Serial
object. It performs the same processing as Serial.printfmt()
.
mwx_snprintf()
performs snprintf
formatting to a buffer.
If you want to construct a buffer using printf-style output for the array class smplbuf, refer to Generating data with
mwx::stream
.