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 Bool )

Takes a file path, attempts to read the entire file. Returns (contents true) on success, or (โ€œโ€ false) on failure. Errors are values, not crashes. Panics only for internal bugs (wrong stack type).

ยงSafety

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