Initial commit

This commit is contained in:
Pin
2021-10-22 22:04:38 -04:00
commit d050bdd5da
6 changed files with 224 additions and 0 deletions

23
cmd/shell.c Normal file
View File

@@ -0,0 +1,23 @@
#include <stdio.h>
#include <stdlib.h>
#include "cmd_utils.h"
#define clear() printf("\033[H\033[J")
int main() {
int status_return = 0;
char *cmd;
char **args;
init_shell();
do {
cmd = read_input();
args = split_cmd(cmd);
status_return = reverse_execute(args);
free(cmd);
free(args);
} while(status_return != 255);
return EXIT_SUCCESS;
}