réplica de
https://github.com/Arnau478/quark.git
synced 2024-06-02 15:16:29 +02:00
14 líneas
252 B
C
14 líneas
252 B
C
|
#include "shell.h"
|
||
|
#include "lib/stdio.h"
|
||
|
#include "lib/string.h"
|
||
|
|
||
|
int shell_run(char *cmd){
|
||
|
if(!strcmp(cmd, "HELLO")){
|
||
|
printf("Hello!\n");
|
||
|
}
|
||
|
else{
|
||
|
printf("SHELL: Unknown command \"%s\"\n", cmd);
|
||
|
return 127;
|
||
|
}
|
||
|
}
|