summaryrefslogtreecommitdiffstats
path: root/03_exercise/srv/prompt_utils.h
diff options
context:
space:
mode:
authorStefan Zabka <zabkaste@hu-berlin.de>2020-06-10 17:11:44 +0200
committerStefan Zabka <zabkaste@hu-berlin.de>2020-06-10 17:11:44 +0200
commit5598f8300b9d3e7b49a4d3e65d1d837616b8beb5 (patch)
tree84fe96600f41f7d9a7b806edf8f27a3fbb82da4e /03_exercise/srv/prompt_utils.h
parent47aaae2c42d554963fb811b68fdf28c9743598e8 (diff)
parentd80bb89ceaee252cff304c3f7dcb160d3bee8fde (diff)
downloadbetriebssysteme-5598f8300b9d3e7b49a4d3e65d1d837616b8beb5.tar.gz
betriebssysteme-5598f8300b9d3e7b49a4d3e65d1d837616b8beb5.zip
Merge branch 'master' into threadpool
Diffstat (limited to '03_exercise/srv/prompt_utils.h')
-rw-r--r--03_exercise/srv/prompt_utils.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/03_exercise/srv/prompt_utils.h b/03_exercise/srv/prompt_utils.h
new file mode 100644
index 0000000..36d065d
--- /dev/null
+++ b/03_exercise/srv/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