message: Try writing a parse function in the runtime
diff: extern {
  pub fn printf(format: *const u8, ...) -> i32;
  + pub fn sscanf(s: *const u8, format: *const u8, ...) -> i32;
  }
  #[no_mangle]
  @@ -11,6 +12,15 @@ pub extern "C" fn print_int(i: i64) {
  }
  }
  +#[no_mangle]
  +pub extern "C" fn parse_int(argv: *const *const u8, argi: isize) -> i64 {
  + unsafe {
  + let mut res: i64 = 0;
  + sscanf(*argv.offset(argi), "%ld\0".as_ptr() as *const _, &mut res as *mut i64);
  + res
  + }
  +}
  +
  #[panic_handler]
  fn my_panic(_info: &core::panic::PanicInfo) -> ! {
  loop {}
  