pub unsafe extern "C" fn tr_sys_dir_get_current(
    error: *mut *mut tr_error
) -> *mut c_char
Expand description

@brief Portability wrapper for getcwd ().

@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 path to current directory (use @ref tr_free to free it when no longer needed) on success, NULL otherwise (with error set accordingly).