patch_seq_string_to_int

Function patch_seq_string_to_int 

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

Convert String to Int: ( String – Int Bool ) Returns the parsed int and true on success, or 0 and false on failure. Accepts integers in range [-9223372036854775808, 9223372036854775807] (i64). Trims leading/trailing whitespace before parsing. Leading zeros are accepted (e.g., “007” parses to 7).

§Error Handling

  • Empty stack: Sets runtime error, returns unchanged stack
  • Type mismatch: Sets runtime error, returns 0 and false

§Safety

Stack must have a String value on top