summaryrefslogtreecommitdiffstats
path: root/02_exercise/prompt_utils.h
diff options
context:
space:
mode:
authorStefan Zabka <zabkaste@hu-berlin.de>2020-05-20 18:07:43 +0200
committerStefan Zabka <zabkaste@hu-berlin.de>2020-05-20 18:07:43 +0200
commit9f7bf8ddf255f06a3c27c13dad87e34a70356d58 (patch)
treea09f18cbf96bd8f983ad1b67de22d57561ce4cf1 /02_exercise/prompt_utils.h
parent08d6167988a0bbec72d84ff12f8857f0b4d0b42a (diff)
downloadbetriebssysteme-9f7bf8ddf255f06a3c27c13dad87e34a70356d58.tar.gz
betriebssysteme-9f7bf8ddf255f06a3c27c13dad87e34a70356d58.zip
First implementation of prompt
Diffstat (limited to '02_exercise/prompt_utils.h')
-rw-r--r--02_exercise/prompt_utils.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/02_exercise/prompt_utils.h b/02_exercise/prompt_utils.h
new file mode 100644
index 0000000..93de502
--- /dev/null
+++ b/02_exercise/prompt_utils.h
@@ -0,0 +1,11 @@
+#ifndef PROMPT_UTILS_H_INCLUDED
+#define PROMPT_UTILS_H_INCLUDED
+
+#include <stddef.h>
+
+// Returns the relative path to get from the `from_dir` to the `to_dir`
+char const *const relative_path(char const *const from_dir, char const *const to_dir);
+
+// Returns the position of each element one after the seperator
+size_t *get_seperator_indeces(char const *const text, char seperator);
+#endif // PROMPT_UTILS_H_INCLUDED \ No newline at end of file