Function transmission_sys::tr_sys_path_resolve
source · pub unsafe extern "C" fn tr_sys_path_resolve(
path: *const c_char,
error: *mut *mut tr_error
) -> *mut c_char
Expand description
@brief Portability wrapper for realpath ()
.
@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 full path (with symbolic
links, .
and ..
resolved) on success (use @ref tr_free to free it
when no longer needed), NULL
otherwise (with error
set
accordingly).