testing how to get just number?

This commit is contained in:
Jonathan Turner 2023-11-29 08:27:46 -05:00
parent d4b268b848
commit 6d47e897c5

View File

@ -35,11 +35,10 @@
if (strcmp(input, "END") == 0) { if (strcmp(input, "END") == 0) {
kprint("Stopping the CPU. Bye!\n"); kprint("Stopping the CPU. Bye!\n");
asm volatile("hlt"); asm volatile("hlt");
} else if (strcmp(input, "ADD") == 0) {
umem_head = add_node( umem_head, 0x10000, 0x100, true, global_id++);
} else if (strncmp(input, "ADD", 3) == 0) { } else if (strncmp(input, "ADD", 3) == 0) {
if (sstrlen(input, 15) > 4) { if (sstrlen(input, 15) > 4) {
kprint("owo"); char *number = input + 4;
kprint(number);
} }
umem_head = add_node( umem_head, 0x10000, 0x100, true, global_id++); umem_head = add_node( umem_head, 0x10000, 0x100, true, global_id++);
} else if (strcmp(input, "LIST") == 0) { } else if (strcmp(input, "LIST") == 0) {