réplica de
https://github.com/Arnau478/quark.git
synced 2024-11-23 21:08:07 +01:00
Renamed commands to lowercase
This commit is contained in:
pare
95f823c2c3
commit
a59ad4dea1
S'han modificat 1 arxius amb 5 adicions i 5 eliminacions
|
@ -7,19 +7,19 @@ int shell_run(char *cmd){
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
puts("\x1b[32m");
|
puts("\x1b[32m");
|
||||||
if(!strcmp(cmd, "HELLO")){
|
if(!strcmp(cmd, "hello")){
|
||||||
printf("Hello!\n");
|
printf("Hello!\n");
|
||||||
}
|
}
|
||||||
else if(!strcmp(cmd, "VERSION")){
|
else if(!strcmp(cmd, "version")){
|
||||||
printf("%s\n", OS_VERSION);
|
printf("%s\n", OS_VERSION);
|
||||||
}
|
}
|
||||||
else if(!strcmp(cmd, "MALLOC")){
|
else if(!strcmp(cmd, "malloc")){
|
||||||
printf("Allocated 10 bytes:\n%x\n", kmalloc(10));
|
printf("Allocated 10 bytes:\n%x\n", kmalloc(10));
|
||||||
}
|
}
|
||||||
else if(!strcmp(cmd, "CALLOC")){
|
else if(!strcmp(cmd, "calloc")){
|
||||||
printf("Allocated and zeroed 10 chars:\n%x\n", kcalloc(10, sizeof(char)));
|
printf("Allocated and zeroed 10 chars:\n%x\n", kcalloc(10, sizeof(char)));
|
||||||
}
|
}
|
||||||
else if(!strcmp(cmd, "CLEAR")){
|
else if(!strcmp(cmd, "clear")){
|
||||||
clear_screen();
|
clear_screen();
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
Loading…
Referencia en una nova incidència