diff options
Diffstat (limited to 'api/libc')
| -rw-r--r-- | api/libc/stdio.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/api/libc/stdio.h b/api/libc/stdio.h new file mode 100644 index 0000000..1edec4a --- /dev/null +++ b/api/libc/stdio.h @@ -0,0 +1,18 @@ +#pragma once + +#include <libc/string.h> + +#include <stdarg.h> + +typedef struct FILE FILE; + +extern FILE *stdout; +extern FILE *stderr; + +extern int fputc(int c, FILE *f); + +int vfprintf(FILE *f, const char *restrict format, va_list arguments); +int fprintf(FILE *f, const char *restrict format, ...); +int vprintf(const char *restrict format, va_list arguments); +int printf(const char *restrict format, ...); + |
