Skip to main content

patch_seq_file_spit

Function patch_seq_file_spit 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn patch_seq_file_spit(stack: Stack) -> Stack
Expand description

Write string to file (creates or overwrites)

Stack effect: ( String String – Bool )

Takes content and path, writes content to file. Creates the file if it doesn’t exist, overwrites if it does. Returns true on success, false on failure.

§Safety

  • stack must be a valid, non-null stack pointer
  • Top of stack must be path (String), second must be content (String)