summaryrefslogtreecommitdiff
path: root/lib/api/libc/stdio.h
blob: 81ee462c90968050d3dc2662fb451660a860f5b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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, ...);
int vsprintf(char *s, const char *restrict format, va_list arguments);
int sprintf(char *s, const char *restrict format, ...);