Function nstd_fs_open

Source
pub unsafe extern "C" fn nstd_fs_open(
    name: *const c_char,
    mask: usize,
) -> NSTDFile
Expand description

Opens a file and returns the file handle. Files must be closed. Parameters: const char *const name - The name of the file. const NSTDUSize mask - Bit mask defining how to open the file. - Bit 1 - Create the file if it doesn’t exist. Write bit must be set for this to work. - Bit 2 - Read from the file. - Bit 3 - Write to the file. - Bit 4 - Append to the file. - Bit 5 - Truncate the file. Returns: NSTDFile file - A handle to the opened file.