Fully implemented stdio.h!

This commit is contained in:
2024-10-26 14:39:41 +02:00
parent 96fdd9a9cb
commit 21c59b28f7
6 changed files with 133 additions and 12 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ int putchar(int c) { return putc(c, stdout); }
int getc(FILE* stream) {
if (!stream) { return EOF; }
unsigned char ch;
unsigned char ch = '\0';
ssize_t res = read(stream->_file, &ch, 1);
if (res <= 0) { return EOF; }