Skip to content

Commit

Permalink
populate stdin/stdout/stderr pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Nov 23, 2024
1 parent 486b72c commit 99f38ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libc/src/stdio.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#include <stdio.h>

FILE *stdin = &(FILE){0};
FILE *stdout = &(FILE){0};
FILE *stderr = &(FILE){0};

int puts(const char *str) { return 0; }

int fputs(const char *s, FILE *stream) { return 0; }
Expand Down

0 comments on commit 99f38ab

Please sign in to comment.