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
+5 -1
View File
@@ -23,7 +23,11 @@ int main() {
case TOKEN_CLEAR: not_implemented_yet(); break;
case TOKEN_HELP: not_implemented_yet(); break;
case TOKEN_SPAWN: if (tokens_count >= 2) cmd_spawn(tokens[1]); break;
default: printf("Unknown command\n"); break;
default: {
char buff[256];
snprintf(buff, sizeof(buff), "/bin/%s", tokens[0]);
cmd_spawn(buff);
}
}
}
}