diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-12 00:37:26 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-16 22:57:45 +0100 |
| commit | 2ce58c995946f85666e793c4f06efff683e76ae4 (patch) | |
| tree | fbf2658bb0b0f61dadcf4ca27f997eaded78aae5 /src/libc/include/stdio.h | |
| parent | 5ce25ae3b5d8666d373f7d7e336546ce8508c213 (diff) | |
fixesHEADhelloworldmaster
Diffstat (limited to 'src/libc/include/stdio.h')
| -rw-r--r-- | src/libc/include/stdio.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/libc/include/stdio.h b/src/libc/include/stdio.h index b9c1a38..efa60dd 100644 --- a/src/libc/include/stdio.h +++ b/src/libc/include/stdio.h @@ -19,8 +19,23 @@ #ifndef _STDIO_H #define _STDIO_H -enum {EOF = -1}; +#include <stddef.h> +#define BUFSIZ 128 +#define FOPEN_MAX 8 +#define FILENAME_MAX 128 +#define EOF -1 +#define stdin __stdin +#define stdout __stdout +#define stderr __stderr + +typedef struct __file FILE; +extern FILE *__stdin, *__stdout, *__stderr; + +int fputc(int __c, FILE *__f); +FILE *fopen(const char *__path, const char *__mode); +size_t fwrite(const void *__p, size_t __sz, size_t __nmemb, FILE *__f); +int putc(int __c, FILE *__f); int puts(const char *__s); int putchar(int __c); |
