nstd_fs_file_write

Function nstd_fs_file_write 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn nstd_fs_file_write( file: &mut NSTDFile, bytes: &NSTDSlice, ) -> NSTDIOResult
Available on crate feature fs only.
Expand description

Writes some data to a file & returns how many bytes were written.

§Parameters:

  • NSTDFile *file - A handle to an open file.

  • const NSTDSlice *bytes - The data to write to the file.

§Returns

NSTDIOResult written - The number of bytes written to handle on success, or the I/O operation error code on failure.

§Safety

This function’s caller must guarantee validity of bytes.