From 575dcfc9e15cfbd45339fe0e5cb4be6c637248d1 Mon Sep 17 00:00:00 2001 From: Tharre Date: Sun, 15 Feb 2015 01:50:48 +0100 Subject: 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). --- src/filepath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/filepath.h') 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); -- cgit v1.2.3-70-g09d2