1 |
root |
1.1 |
#ifndef PATH_H |
2 |
|
|
#define PATH_H |
3 |
|
|
|
4 |
|
|
/** |
5 |
|
|
* Combine two paths and return the combined path. The result value is a static |
6 |
|
|
* buffer; it is valid until the next call to this function. |
7 |
|
|
*/ |
8 |
|
|
char *path_combine(const char *src, const char *dst); |
9 |
|
|
|
10 |
|
|
/** |
11 |
|
|
* Normalize a path; the passed in path is modified in-place. |
12 |
|
|
*/ |
13 |
|
|
void path_normalize(char *path); |
14 |
|
|
|
15 |
|
|
/** |
16 |
|
|
* Combine two paths and normalize the result. The result is a static buffer; |
17 |
|
|
* it is valid until the next call to either this function or to |
18 |
|
|
* combine_path(). |
19 |
|
|
*/ |
20 |
|
|
char *path_combine_and_normalize(const char *src, const char *dst); |
21 |
|
|
|
22 |
|
|
#endif |