diff options
Diffstat (limited to 'include/zix/path.h')
-rw-r--r-- | include/zix/path.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/zix/path.h b/include/zix/path.h index 13225e6..22c8202 100644 --- a/include/zix/path.h +++ b/include/zix/path.h @@ -36,6 +36,7 @@ ZIX_BEGIN_DECLS /// Join path `a` and path `b` with a single directory separator between them ZIX_API +ZIX_NODISCARD char* ZIX_ALLOCATED zix_path_join(ZixAllocator* ZIX_NULLABLE allocator, const char* ZIX_NULLABLE a, @@ -55,6 +56,7 @@ zix_path_join(ZixAllocator* ZIX_NULLABLE allocator, else). */ ZIX_API +ZIX_NODISCARD char* ZIX_ALLOCATED zix_path_preferred(ZixAllocator* ZIX_NULLABLE allocator, const char* ZIX_NONNULL path); @@ -71,6 +73,7 @@ zix_path_preferred(ZixAllocator* ZIX_NULLABLE allocator, zix_canonical_path(). */ ZIX_API +ZIX_NODISCARD char* ZIX_ALLOCATED zix_path_lexically_normal(ZixAllocator* ZIX_NULLABLE allocator, const char* ZIX_NONNULL path); @@ -83,6 +86,7 @@ zix_path_lexically_normal(ZixAllocator* ZIX_NULLABLE allocator, up-references). */ ZIX_API +ZIX_NODISCARD char* ZIX_ALLOCATED zix_path_lexically_relative(ZixAllocator* ZIX_NULLABLE allocator, const char* ZIX_NONNULL path, |