summaryrefslogblamecommitdiffstats
path: root/02_exercise/prompt_utils.h
blob: 36d065d7e87d0f6073ccb99a2ab4a2cc07f33b6d (plain) (tree)
1
2
3
4
5
6
7
8
9


                               
                                                                       
                                                                    
 


                                                                
                                 
#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