summaryrefslogtreecommitdiff
path: root/LibC/stdio.h
blob: 6129ccd3da5ce11117221ade5b6f5095b0f2c4a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once

#include <sys/cdefs.h>

__BEGIN_DECLS

#ifndef EOF
#define EOF (-1)
#endif

struct __STDIO_FILE {
    int fd;
};

typedef struct __STDIO_FILE FILE;

extern FILE* stdin;
extern FILE* stdout;
extern FILE* stderr;

int fprintf(FILE*, const char* fmt, ...);
int printf(const char* fmt, ...);
int sprintf(char* buffer, const char* fmt, ...);
int putchar(int ch);
void perror(const char*);

__END_DECLS