pub unsafe extern "C" fn tr_sys_file_truncate(
    handle: tr_sys_file_t,
    size: u64,
    error: *mut *mut tr_error
) -> u8
Expand description

@brief Portability wrapper for ftruncate ().

@param[in] handle Valid file descriptor. @param[in] size Number of bytes to truncate (or extend) file to. @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).