diff options
author | Stefan Zabka <zabkaste@hu-berlin.de> | 2020-05-21 17:46:07 +0200 |
---|---|---|
committer | Stefan Zabka <zabkaste@hu-berlin.de> | 2020-05-21 17:46:07 +0200 |
commit | 0465e79da49900bbd66216d979876654f8977e30 (patch) | |
tree | 0a88c6c1b7d593ebb492e3f55b751991ca92432c /02_exercise/shell.c | |
parent | 47f29d306e120f8233e87d43bccd8c97ccf88831 (diff) | |
download | betriebssysteme-0465e79da49900bbd66216d979876654f8977e30.tar.gz betriebssysteme-0465e79da49900bbd66216d979876654f8977e30.zip |
Cmake should use gcc
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; |