From 0dc4d4db3a91faa799187fd321fcae82b12f9b66 Mon Sep 17 00:00:00 2001 From: pommicket Date: Wed, 18 Oct 2023 23:47:17 -0400 Subject: editorconfig globs, testing "framework" --- util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util.h') 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. -- cgit v1.2.3