From 1dc3507474aeb82d023d4fc2949d25fc774e2ce0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 6 Feb 2020 14:14:35 +0100 Subject: path: add mp_path_is_absolute() Just move it from mp_path_join_bstr() to this new function. --- options/path.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'options/path.h') diff --git a/options/path.h b/options/path.h index c3c3699a0b..19f4fb5909 100644 --- a/options/path.h +++ b/options/path.h @@ -77,6 +77,9 @@ void mp_path_strip_trailing_separator(char *path); char *mp_path_join(void *talloc_ctx, const char *p1, const char *p2); char *mp_path_join_bstr(void *talloc_ctx, struct bstr p1, struct bstr p2); +// Return whether the path is absolute. +bool mp_path_is_absolute(struct bstr path); + char *mp_getcwd(void *talloc_ctx); bool mp_path_exists(const char *path); -- cgit v1.2.3