diff options
author | Stefan Zabka <zabkaste@hu-berlin.de> | 2020-05-24 12:09:46 +0200 |
---|---|---|
committer | Stefan Zabka <zabkaste@hu-berlin.de> | 2020-05-24 12:09:46 +0200 |
commit | 65966ded0cc15c5966c6568cf0ff2f2bbe1fc29a (patch) | |
tree | 60af69be16926ef0f24ad2a954d9205ce9277450 /shell/prompt_utils.h | |
parent | 3b7e61eab8ce5d230bc1b172942c1ab9459ed161 (diff) | |
download | betriebssysteme-65966ded0cc15c5966c6568cf0ff2f2bbe1fc29a.tar.gz betriebssysteme-65966ded0cc15c5966c6568cf0ff2f2bbe1fc29a.zip |
Big remodelling
Diffstat (limited to 'shell/prompt_utils.h')
-rw-r--r-- | shell/prompt_utils.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/shell/prompt_utils.h b/shell/prompt_utils.h new file mode 100644 index 0000000..36d065d --- /dev/null +++ b/shell/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 |