summaryrefslogtreecommitdiffstats
path: root/02_exercise/prompt_utils.h
diff options
context:
space:
mode:
authorStefan Zabka <zabkaste@hu-berlin.de>2020-05-24 12:19:52 +0200
committerStefan Zabka <zabkaste@hu-berlin.de>2020-05-24 12:19:52 +0200
commit04576dc2a3f761eb041b808b56f13a58052e7655 (patch)
treec6bed6db34e29f0dec0c844fbc931b3dd4fab8db /02_exercise/prompt_utils.h
parent65966ded0cc15c5966c6568cf0ff2f2bbe1fc29a (diff)
downloadbetriebssysteme-04576dc2a3f761eb041b808b56f13a58052e7655.tar.gz
betriebssysteme-04576dc2a3f761eb041b808b56f13a58052e7655.zip
Moved back to 02_exercise
Diffstat (limited to '02_exercise/prompt_utils.h')
-rw-r--r--02_exercise/prompt_utils.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/02_exercise/prompt_utils.h b/02_exercise/prompt_utils.h
new file mode 100644
index 0000000..36d065d
--- /dev/null
+++ b/02_exercise/prompt_utils.h
@@ -0,0 +1,10 @@
+#ifndef PROMPT_UTILS_H_INCLUDED
+#define PROMPT_UTILS_H_INCLUDED
+
+// returns the relative path to get from the `from_dir` to the `to_dir`
+char const *relative_path(char const *from_dir, char const *to_dir);
+
+// returns the position of each occurrence of the separator
+size_t *get_separator_indices(char const *text, char separator);
+
+#endif // PROMPT_UTILS_H_INCLUDED