summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-10-18 23:47:17 -0400
committerpommicket <pommicket@gmail.com>2023-10-18 23:47:17 -0400
commit0dc4d4db3a91faa799187fd321fcae82b12f9b66 (patch)
tree01450afdc49764bd8ea486d155a351fd7b6a8d4b /util.h
parent4d57539ffc2954e5c3b9c42da41511f69c4fcde9 (diff)
editorconfig globs, testing "framework"
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.