diff options
Diffstat (limited to '02_exercise/shell.c')
-rw-r--r-- | 02_exercise/shell.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/02_exercise/shell.c b/02_exercise/shell.c index ed53897..41378f4 100644 --- a/02_exercise/shell.c +++ b/02_exercise/shell.c @@ -106,17 +106,6 @@ int parse_line(char const *line, char ***parts, size_t *part_count) { return 0; } -void print_prompt() { - size_t length = 1024; - char *buffer = malloc(length * sizeof(char)); - getcwd(buffer, length); - if (buffer == NULL) { - printf(".> "); - } else { - printf("%s > ", buffer); - } -} - int exec_command(const char *path, char *const argv[], unsigned timeout) { timeout = timeout ^ timeout; int pid; |