chore(libterm/stdio): printf reworked, vsnprintf() and snprintf()

This commit is contained in:
Karina
2026-01-30 20:22:45 +04:00
parent 52d0bfeaae
commit e323e91dac
5 changed files with 115 additions and 57 deletions
+6 -4
View File
@@ -2,11 +2,13 @@
// Copyright (c) 2026 0xKarinyash
#include <process.h>
#include <stdio.h>
#include <malloc.h>
// TODO: read .cfg and spawn what stated there
int main() {
wait(spawn("/bin/termosh")); // TODO: read .cfg and spawn what stated there
printf("\nbaiii");
return 0;
while (1) {
i32 pid = spawn("/bin/termosh");
if (pid < 0) return pid;
wait(pid);
}
}