Espresso 0.0.2c

This commit is contained in:
2026-03-20 16:57:08 -05:00
parent 021fdbbcef
commit 5971218b56
77 changed files with 4538 additions and 518 deletions

22
libc/stdio.c Normal file
View File

@ -0,0 +1,22 @@
#include "include/string.h"
#include "../syscall.h"
#include "include/stdio.h"
int writestring(const char* __s)
{
/*syscall1(SYS_TERMINAL_WRITESTRING, __s);*/
return syscall3(SYS_WRITE, 1, __s, strlen(__s));
}
void writechar(char __c)
{
syscall1(SYS_TERMINAL_PUTCHAR, __c);
}
int getstring(char* __str)
{
return syscall3(SYS_READ, 0, __str, 0);
}