forked from PoliEcho-holding-org/kern
Fully implemented stdio.h!
This commit is contained in:
@@ -4,6 +4,10 @@
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
FILE* stdin;
|
||||
FILE* stdout;
|
||||
FILE* stderr;
|
||||
|
||||
FILE* fopen(const char* path, const char* mode) {
|
||||
FILE* fp = (FILE*)malloc(sizeof(FILE));
|
||||
if (!fp) { return NULL; }
|
||||
|
||||
Reference in New Issue
Block a user