Function transmission_sys::tr_sys_file_get_std
source · pub unsafe extern "C" fn tr_sys_file_get_std(
std_file: tr_std_sys_file_t,
error: *mut *mut tr_error
) -> tr_sys_file_t
Expand description
@brief Get handle to one of standard I/O files.
@param[in] std_file Standard file identifier.
@param[out] error Pointer to error object. Optional, pass NULL
if you
are not interested in error details.
@return Opened file descriptor on success, TR_BAD_SYS_FILE
otherwise (with
error
set accordingly). DO NOT pass this descriptor to
@ref tr_sys_file_close (unless you know what you are doing).