patch_seq_file_slurp

Function patch_seq_file_slurp 

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

Read entire file contents as a string

Stack effect: ( String – String )

Takes a file path, reads the entire file, and returns its contents. Panics if the file cannot be read (doesn’t exist, no permission, not UTF-8, etc.)

§Safety

  • stack must be a valid, non-null stack pointer with a String value on top
  • Caller must ensure stack is not concurrently modified