The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
stdio.c File Reference
#include "stdio.h"

Enumerations

enum  printf_length_t { LENGTH_INT , LENGTH_LONG , LENGTH_LONG_LONG , LENGTH_SIZE }

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 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.
void printf (const char *fmt,...)
void stdio_printf_to (StdioPutCharFn out, const char *fmt,...)
void puts (const char *str)

Enumeration Type Documentation

◆ printf_length_t

Enumerator
LENGTH_INT 
LENGTH_LONG 
LENGTH_LONG_LONG 
LENGTH_SIZE 

Function Documentation

◆ stdio_set_putchar()

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.

Parameters
funccallback used for character output.

◆ stdio_putchar()

void stdio_putchar ( char c)

output a single character through the configured stdio backend.

if no backend is configured this function does nothing.

Parameters
ccharacter to output.

◆ stdio_format_args()

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.

Parameters
outcharacter output callback.
fmtformat string.
argsthe caller's argument list.

◆ printf()

void printf ( const char * fmt,
... )

◆ stdio_printf_to()

void stdio_printf_to ( StdioPutCharFn out,
const char * fmt,
... )

◆ puts()

void puts ( const char * str)