nstd_fs_create_file

Function nstd_fs_create_file 

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

Creates a new file on the file system.

§Parameters:

  • const NSTDStr *name - The name of the new file.

§Returns

NSTDIOError errc - The I/O operation error code.

§Safety

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