Function transmission_sys::tr_sys_path_basename
source · pub unsafe extern "C" fn tr_sys_path_basename(
path: *const c_char,
error: *mut *mut tr_error
) -> *mut c_char
Expand description
@brief Portability wrapper for basename ()
.
@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 base name (last path
component; parent path removed) on success (use @ref tr_free to free
it when no longer needed), NULL
otherwise (with error
set
accordingly).