diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-03-24 09:29:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-03-24 09:40:35 +0300 |
commit | 50f9fc7a53b53a53b9fc90bcb20396426631d20f (patch) | |
tree | 6ac2d648cbac39d54054e1c993a4e68b73a82b49 /source/blender/blenlib/BLI_path_util.h | |
parent | 0453c807e0b3e18c7df4b61affba8069bb8858ac (diff) |
BLI_path_util: Add BLI_path_join
There weren't any convenient ways to join multiple paths in C
that accounted for corner cases.
Diffstat (limited to 'source/blender/blenlib/BLI_path_util.h')
-rw-r--r-- | source/blender/blenlib/BLI_path_util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_path_util.h b/source/blender/blenlib/BLI_path_util.h index a4f5c3c7a01..b6a55d34d14 100644 --- a/source/blender/blenlib/BLI_path_util.h +++ b/source/blender/blenlib/BLI_path_util.h @@ -52,6 +52,9 @@ void BLI_path_append(char *__restrict dst, const size_t maxlen, const char *__restrict file) ATTR_NONNULL(); void BLI_join_dirfile(char *__restrict string, const size_t maxlen, const char *__restrict dir, const char *__restrict file) ATTR_NONNULL(); +size_t BLI_path_join( + char *__restrict dst, const size_t dst_len, + const char *path_first, ...) ATTR_NONNULL(1, 3) ATTR_SENTINEL(0); const char *BLI_path_basename(const char *path) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT; bool BLI_path_name_at_index( const char *__restrict path, const int index, |