pub unsafe extern "C" fn tr_sys_dir_read_name(
    handle: tr_sys_dir_t,
    error: *mut *mut tr_error
) -> *const c_char
Expand description

@brief Portability wrapper for readdir ().

@param[in] handle Valid directory descriptor. @param[out] error Pointer to error object. Optional, pass NULL if you are not interested in error details.

@return Pointer to next directory entry name (stored internally, DO NOT pass it to @ref tr_free) on success, NULL otherwise (with error set accordingly). Note that NULL will also be returned in case of end of directory; if you need to distinguish the two, check if error is NULL afterwards.