2020301918-os/inc/stdio.h
2022-10-29 19:48:58 +08:00

17 lines
475 B
C

#ifndef MINIOS_STDIO_H
#define MINIOS_STDIO_H
#include <type.h>
#include <stdarg.h>
#ifndef NULL
#define NULL ((void *) 0)
#endif /* NULL */
// lib/kern/printfmt.c
void printfmt(void (*putch)(int, void*), void *putdat, const char *fmt, ...);
void vprintfmt(void (*putch)(int, void*), void *putdat, const char *fmt, va_list);
int snprintf(char *str, int size, const char *fmt, ...);
int vsnprintf(char *str, int size, const char *fmt, va_list);
#endif /* MINIOS_STDIO_H */