Function transmission_sys::tr_sys_file_write_fmt
source · pub unsafe extern "C" fn tr_sys_file_write_fmt(
handle: tr_sys_file_t,
format: *const c_char,
error: *mut *mut tr_error,
...
) -> u8
Expand description
@brief Portability wrapper for fprintf ()
.
Special care should be taken when writing to one of standard output streams (@ref tr_std_sys_file_t) since no UTF-8 conversion is currently being made.
Writing to other streams (files, pipes) also leaves data untouched, so it should already be in UTF-8 encoding, or whichever else you expect.
@param[in] handle Valid file descriptor.
@param[in] format String format to write.
@param[out] error Pointer to error object. Optional, pass NULL
if you are
not interested in error details.
@param[in] … Format arguments.
@return True
on success, false
otherwise (with error
set accordingly).