Function nstd_sys::fs::nstd_fs_read
source · #[no_mangle]
pub unsafe extern "C" fn nstd_fs_read(
path: &NSTDStr
) -> NSTDIOBufferResult<'_>Available on crate feature
nstd_fs only.Expand description
Reads the contents of a file.
Parameters:
const NSTDStr *path- A path to the file to read.
Returns
NSTDIOBufferResult contents - The file’s contents, or the I/O operation error code on failure.
Safety
This operation can cause undefined behavior if path’s data is invalid.