summaryrefslogtreecommitdiff
path: root/api/lib/kstdio.h
blob: 80e47cc27e7b408454226ee98a329d7f2a02b443 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <lib/kstring.h>

#include <stdarg.h>

typedef struct FILE FILE;

extern FILE *kstdout;
extern FILE *kstderr;

extern int kfputc(int c, FILE *f);

int kvfprintf(FILE *f, const char *restrict format, va_list arguments);
int kfprintf(FILE *f, const char *restrict format, ...);
int kvprintf(const char *restrict format, va_list arguments);
int kprintf(const char *restrict format, ...);