summaryrefslogtreecommitdiffstats
path: root/03_exercise/srv/prompt_utils.h
diff options
context:
space:
mode:
authorNiklas Halle <niklas@niklashalle.net>2020-06-01 15:46:28 +0200
committerNiklas Halle <niklas@niklashalle.net>2020-06-01 15:46:50 +0200
commit74abc79434fe895d0ca863e4d1d6c5c16b54f296 (patch)
treec0fcf720bf72c6cd348ce6b8a3063861918fc609 /03_exercise/srv/prompt_utils.h
parent85131d8acfca55810205af625d65358f006f3de7 (diff)
downloadbetriebssysteme-74abc79434fe895d0ca863e4d1d6c5c16b54f296.tar.gz
betriebssysteme-74abc79434fe895d0ca863e4d1d6c5c16b54f296.zip
trying to connect server and shell, weird
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