diff options
Diffstat (limited to '02_exercise/prompt_utils.h')
-rw-r--r-- | 02_exercise/prompt_utils.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/02_exercise/prompt_utils.h b/02_exercise/prompt_utils.h new file mode 100644 index 0000000..a3a9d9e --- /dev/null +++ b/02_exercise/prompt_utils.h @@ -0,0 +1,11 @@ +#ifndef PROMPT_UTILS_H_INCLUDED +#define PROMPT_UTILS_H_INCLUDED + +#include <stddef.h> + +// 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 occurence of the seperator +size_t *get_seperator_indeces(char const *text, char seperator); +#endif // PROMPT_UTILS_H_INCLUDED |