pub unsafe extern "C" fn tr_sys_file_write_line(
    handle: tr_sys_file_t,
    buffer: *const c_char,
    error: *mut *mut tr_error
) -> u8
Expand description

@brief Portability wrapper for fputs (), appending EOL internally.

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] buffer Zero-terminated string to write. @param[out] error Pointer to error object. Optional, pass NULL if you are not interested in error details.

@return True on success, false otherwise (with error set accordingly).