toaruos/base/usr/include/kernel/printf.h

12 lines
411 B
C

#pragma once
#include <stdarg.h>
#include <kernel/types.h>
__attribute__((format(__printf__,1,2)))
extern int printf(const char *fmt, ...);
extern size_t (*printf_output)(size_t, uint8_t *);
__attribute__((format(__printf__,3,4)))
extern int snprintf(char * str, size_t size, const char * format, ...);
extern size_t xvasprintf(int (*callback)(void *, char), void * userData, const char * fmt, va_list args);