MU Library
printf.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 mu
 

Functions

int mu::uartPrintf (const char *format,...)
 Print a formatted string to UART. More...
 
int mu::hostPrintf (const char *format,...)
 Print a formatted string to the host. More...
 
int printf_ (const char *format,...)
 Print a formatted string to UART (same as mu::uartPrintf). More...
 
int sprintf_ (char *buffer, const char *format,...)
 Print a formatted string to a buffer. More...
 

Function Documentation

◆ printf_()

int printf_ ( const char *  format,
  ... 
)

Print a formatted string to UART (same as mu::uartPrintf).

This function is an alias for mu::uartPrintf, providing the same functionality.

Parameters
formatThe format string.
...Additional arguments specifying data to print.
Returns
int The number of characters printed.

◆ sprintf_()

int sprintf_ ( char *  buffer,
const char *  format,
  ... 
)

Print a formatted string to a buffer.

This function writes a formatted string to a buffer. It behaves similarly to the standard sprintf function.

Parameters
bufferThe buffer to write the formatted string into.
formatThe format string.
...Additional arguments specifying data to print.
Returns
int The number of characters written to the buffer.