summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.h b/util.h
index e190cd6..957dc07 100644
--- a/util.h
+++ b/util.h
@@ -150,6 +150,8 @@ int str_qsort_case_insensitive_cmp(const void *av, const void *bv);
const char *path_filename(const char *path);
/// is this an absolute path?
bool path_is_absolute(const char *path);
+/// cuts `path` off at last path separator
+void path_dirname(char *path);
/// assuming `dir` is an absolute path, returns the absolute path of `relpath`, relative to `dir`.
void path_full(const char *dir, const char *relpath, char *abspath, size_t abspath_size);
/// returns true if the paths are the same.