assignment 1 systems
assignment 1 systems
h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/wait.h>
int main(void) {
char input[MAX_INPUT];
while (1) {
printf("\n> ");
if (fgets(input, MAX_INPUT, stdin) == NULL) {
perror("Error reading input");
continue;
}
if (strcmp(input, "exit") == 0) {
printf("Goodbye!\n");
break;
}
tokenizeCommand(input);