basic: add path_equal_filename helper

This commit is contained in:
Luca Boccassi
2021-04-07 14:03:49 +01:00
parent b7ddd44497
commit 727e63e33e
3 changed files with 28 additions and 0 deletions
+2
View File
@@ -61,6 +61,8 @@ char* path_startswith(const char *path, const char *prefix) _pure_;
int path_compare(const char *a, const char *b) _pure_;
bool path_equal(const char *a, const char *b) _pure_;
bool path_equal_or_files_same(const char *a, const char *b, int flags);
/* Compares only the last portion of the input paths, ie: the filenames */
bool path_equal_filename(const char *a, const char *b);
char* path_join_internal(const char *first, ...);
#define path_join(x, ...) path_join_internal(x, __VA_ARGS__, POINTER_MAX)