Function transmission_sys::tr_sys_path_dirname
source · pub unsafe extern "C" fn tr_sys_path_dirname(
path: *const c_char,
error: *mut *mut tr_error
) -> *mut c_char
Expand description
@brief Portability wrapper for dirname ()
.
@param[in] path Path to file or directory.
@param[out] error Pointer to error object. Optional, pass NULL
if you are
not interested in error details.
@return Pointer to newly allocated buffer containing directory (parent path;
last path component removed) on success (use @ref tr_free to free it
when no longer needed), NULL
otherwise (with error
set
accordingly).