summaryrefslogtreecommitdiff
path: root/lib/api/libc/stdio.h
blob: 1edec4ab48cfc4e95856dca5a3e5cc839430417f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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, ...);