patch_seq_arg_count

Function patch_seq_arg_count 

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

Get the number of command-line arguments

Stack effect: ( – Int )

Returns the total count including the program name (argv[0]). A program run with no arguments returns 1.

§Safety

  • stack must be a valid stack pointer (may be null for empty stack)
  • Caller must ensure stack is not concurrently modified