25 char *opt = (
char *)
Kmalloc(10, 8);
27 Kprintf(
"There was a mistaKe created, Known as a Malloc Failure");
32 Kprintf(
"\nshutdown - shutdown system");
33 Kprintf(
"\nhelp - list command");
34 Kprintf(
"\ncmp - compare strings");
35 Kprintf(
"\nclear - clear screen");
36 Kprintf(
"\nsetname - Set Username");
37 Kprintf(
"\nuser - List Username");
38 Kprintf(
"\nrecvpacK - Receive a networK pacKet");
39 }
else if (
Kstrcmp(opt,
"2") == 0) {
40 Kprintf(
"\ntst - Test a WEX Executable");
41 Kprintf(
"\nls - List Files in Mounted FAT16");
42 Kprintf(
"\nread - Read File Contents from Cluster (512 Bytes)");
43 Kprintf(
"\nmKfile - MaKe a new file");
44 Kprintf(
"\nrm - Remove a file");
45 Kprintf(
"\nwrite - Write to a File");
46 Kprintf(
"\nregex - Use POSIX ERE Regex");
void * Kmalloc(size_t size, size_t align)
Allocate memory.
void Kfree(void *ptr)
Free allocated memory.
void Kgetstr(char *str, int length)
Reads a line of input from the keyboard (blocking).
void Kprintf(const char *fmt,...)
Formatted output to the screen.
void Help()
Prints Shell Help.
int Kstrcmp(const char *a, const char *b)
Compare Strings - Similar to standard libc strcmp.