|
ginnOS
The reference: libc, the libraries and the kernel
|
Go to the source code of this file.
Typedefs | |
| typedef void(*) | StdioPutCharFn(char c) |
| signature of a low-level character output function used by stdio. | |
Functions | |
| void | stdio_set_putchar (StdioPutCharFn func) |
| configure the low-level output backend for stdio. | |
| void | stdio_putchar (char c) |
| output a single character through the configured stdio backend. | |
| void | puts (const char *str) |
| print a null terminated string to the output. | |
| void | printf (const char *fmt,...) __attribute__((format(printf |
| print a formatted string to the output. | |
| void void | stdio_printf_to (StdioPutCharFn out, const char *fmt,...) __attribute__((format(printf |
| print a formatted string through a caller-supplied output backend, bypassing the global stdio backend. | |
| void void void | stdio_format_args (StdioPutCharFn out, const char *fmt, va_list args) |
| format engine entry point for variadic wrappers: they va_start their own arguments and pass the list here. | |
| typedef void(*) StdioPutCharFn(char c) |
signature of a low-level character output function used by stdio.
| c | character to output. |
| void stdio_set_putchar | ( | StdioPutCharFn | func | ) |
configure the low-level output backend for stdio.
this must be called by each runtime environment before printf/puts are used.
| func | callback used for character output. |
| void stdio_putchar | ( | char | c | ) |
output a single character through the configured stdio backend.
if no backend is configured this function does nothing.
| c | character to output. |
| void puts | ( | const char * | str | ) |
print a null terminated string to the output.
| str | null terminated string to print. |
| void printf | ( | const char * | fmt, |
| ... ) |
| void void stdio_printf_to | ( | StdioPutCharFn | out, |
| const char * | fmt, | ||
| ... ) |
print a formatted string through a caller-supplied output backend, bypassing the global stdio backend.
lets subsystems (e.g. klog) reuse the printf formatter to write somewhere other than the console.
| out | character output callback. |
| fmt | format string. |
| void void void stdio_format_args | ( | StdioPutCharFn | out, |
| const char * | fmt, | ||
| va_list | args ) |
format engine entry point for variadic wrappers: they va_start their own arguments and pass the list here.
| out | character output callback. |
| fmt | format string. |
| args | the caller's argument list. |