Skip to main content

write_file

Function write_file 

Source
fn write_file(path: &CStr, text: &CStr) -> Result<(), i32>
Expand description

Writes text to the file at path. Allocation free.

§Arguments

  • path - File to open for writing.
  • text - Bytes to write in one call.

§Errors

The errno of open or write.