pub type cookie_write_function_t = Option<unsafe extern "C" fn(__cookie: *mut c_void, __buf: *const c_char, __nbytes: usize) -> __ssize_t>;Expand description
Write NBYTES bytes pointed to by BUF to COOKIE. Write all NBYTES bytes unless there is an error. Return number of bytes written. If there is an error, return 0 and do not write anything. If the file has been opened for append (__mode.__append set), then set the file pointer to the end of the file and then do the write; if not, just write at the current file pointer.
Aliased Type§
pub enum cookie_write_function_t {
None,
Some(unsafe extern "C" fn(*mut c_void, *const i8, usize) -> i64),
}