svn_relpath_split

Function svn_relpath_split 

Source
pub unsafe extern "C" fn svn_relpath_split(
    dirpath: *mut *const c_char,
    base_name: *mut *const c_char,
    relpath: *const c_char,
    result_pool: *mut apr_pool_t,
)
Expand description

Divide the canonicalized @a relpath into @a *dirpath and @a *base_name.

If @a dirpath or @a base_name is NULL, then don’t set that one.

Either @a dirpath or @a base_name may be @a relpaths’s own address, but they may not both be the same address, or the results are undefined.

If @a relpath has two or more components, the separator between @a dirpath and @a base_name is not included in either of the new names.

examples: -

“foo/bar/baz”  ==>  “foo/bar” and “baz”
-
“bar”          ==>  “”  and “bar”
-
“”              ==>  “”   and “”

Allocate the results in @a result_pool.

@since New in 1.7.