Function stdio_printf

Function Documentation

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

An implementation of the C standard’s printf()

Note

This function relies on an implementation of stdio_putchar() which you must provide; this decouples printf() from OS/hw details of exactly how to send a char to stdout.

Parameters:
  • format – A string specifying the format of the output, with %-marked specifiers of how to interpret additional arguments.

  • ... – Additional arguments to the function, one for each %-specifier in format string.

Returns:

The number of characters written into s, not counting the terminating null character