Add: program: words version 1

This commit is contained in:
xamidev
2024-07-24 15:08:39 +02:00
parent b352d3f4e2
commit 631099a53d
10 changed files with 104 additions and 10 deletions

View File

@@ -1,6 +1,7 @@
#include "system.h"
#include "../libc/stdio.h"
#include "../libc/string.h"
#include "../programs/programs.h"
#define BUFFER_SIZE 256
@@ -26,6 +27,10 @@ void shell_install()
{
printf("%d", 4/0);
}
else if (strcmp(input_buffer, "words") == 0)
{
program_words();
}
else {
printf("Unknown command %s\n", input_buffer);
}