diff options
| author | Aleksa Vučković <aleksav013@gmail.com> | 2022-01-02 22:56:02 +0100 |
|---|---|---|
| committer | Aleksa Vučković <aleksav013@gmail.com> | 2022-01-02 22:56:02 +0100 |
| commit | e2b78d20b80d89321d8d9df3ab8ade8407642dfc (patch) | |
| tree | 148cb3bc894b974ae91290e493046120d04987b0 /include/10.libc/stdio.h | |
| parent | ead31873b971044cd3ecb7e40ae03bdb2e6f7642 (diff) | |
Adding code
Diffstat (limited to 'include/10.libc/stdio.h')
| -rw-r--r-- | include/10.libc/stdio.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/10.libc/stdio.h b/include/10.libc/stdio.h new file mode 100644 index 0000000..45c9215 --- /dev/null +++ b/include/10.libc/stdio.h @@ -0,0 +1,28 @@ +#ifndef _STDIO_H +#define _STDIO_H +#include <stdarg.h> +#include <stddef.h> +#define SEEK_SET 0 +typedef struct { int unused; } FILE; +#ifdef __cplusplus +extern "C" { +#endif +extern FILE* stderr; +#define stderr stderr +int fclose(FILE*); +int fflush(FILE*); +FILE* fopen(const char*, const char*); +int fprintf(FILE*, const char*, ...); +size_t fread(void*, size_t, size_t, FILE*); +int fseek(FILE*, long, int); +long ftell(FILE*); +size_t fwrite(const void*, size_t, size_t, FILE*); +void setbuf(FILE*, char*); +int vfprintf(FILE*, const char*, va_list); + +void printf(char *str, ...); + +#ifdef __cplusplus +} +#endif +#endif |
