From 04576dc2a3f761eb041b808b56f13a58052e7655 Mon Sep 17 00:00:00 2001 From: Stefan Zabka Date: Sun, 24 May 2020 12:19:52 +0200 Subject: Moved back to 02_exercise --- 02_exercise/prompt_utils.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 02_exercise/prompt_utils.h (limited to '02_exercise/prompt_utils.h') 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 -- cgit v1.2.3-54-g00ecf