/* shell208.c Jeff Ondich, 16 February 2022 This is a rough framework for your CS208 command shell assignment. */ #include #define MAX_COMMAND_LINE_LENGTH 100 void execute_command(char *command_line); int main() { // The main infinite loop const char *prompt = "shell208> "; char command_line[MAX_COMMAND_LINE_LENGTH]; while (1) { printf(prompt); if (fgets(command_line, MAX_COMMAND_LINE_LENGTH, stdin) != NULL) { execute_command(command_line); } else { fprintf(stderr, "Something went wrong. Try again, I guess.\n"); } } return 0; } void execute_command(char *command_line) { // Do whatever you want to do printf("Hello from the stub version of execute_command.\n"); }