summaryrefslogtreecommitdiffstats
path: root/02_exercise/prompt_utils.h
blob: 93de502eecd1d6e084c96c6a0fd94072f644b290 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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 *const relative_path(char const *const from_dir, char const *const to_dir);

// Returns the position of each element one after the seperator
size_t *get_seperator_indeces(char const *const text, char seperator);
#endif // PROMPT_UTILS_H_INCLUDED