nstd_fs_file_open

Function nstd_fs_file_open 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn nstd_fs_file_open( name: &NSTDStr, mask: NSTDUInt8, ) -> NSTDFileResult
Available on crate feature fs only.
Expand description

Opens file on the filesystem and returns a handle to it.

§Parameters:

  • const NSTDStr *name - The name of the file to create.

  • NSTDUInt8 mask - A bit mask for toggling the file’s different open options.

§Returns

NSTDFileResult file - A handle to the opened file, or the IO error on failure.

§Safety

This operation can cause undefined behavior if name’s data is invalid.