diff options
author | Tharre <tharre3@gmail.com> | 2015-02-15 01:50:48 +0100 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2015-02-15 01:53:16 +0100 |
commit | 575dcfc9e15cfbd45339fe0e5cb4be6c637248d1 (patch) | |
tree | 3c16e5d3c38ded476323dcd596293aad68187c51 /src/filepath.h | |
parent | 6fe2d9cb44515c4db53686327086f2ae894cad60 (diff) | |
download | redo-575dcfc9e15cfbd45339fe0e5cb4be6c637248d1.tar.gz redo-575dcfc9e15cfbd45339fe0e5cb4be6c637248d1.tar.xz redo-575dcfc9e15cfbd45339fe0e5cb4be6c637248d1.zip |
Replace make_relative() with relpath()
Also improve the documentation for this function, and add a few
examples to clarify what it does (and what not).
Diffstat (limited to 'src/filepath.h')
-rw-r--r-- | src/filepath.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filepath.h b/src/filepath.h index 3eb68ba..68a4ecf 100644 --- a/src/filepath.h +++ b/src/filepath.h @@ -14,7 +14,7 @@ extern bool is_absolute(const char* path); extern char *remove_ext(const char *str); extern char *take_extension(const char *target); -extern const char *make_relative(const char *target, const char *to); +extern char *relpath(char *path, char *start); extern char *transform_path(const char *target); extern char *xbasename(const char *path); extern bool fexists(const char *target); |