Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1030210 // parseLongOpt_pcall - return 0 if out of range

JavaX fragment (include)

static long parseLongOpt_pcall(S s) {
  pcall-short {
    ret isInteger(s) ? parseLong(s) : 0;
  }
  ret 0;
}

Author comment

Began life as a copy of #1005829

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030210
Snippet name: parseLongOpt_pcall - return 0 if out of range
Eternal ID of this version: #1030210/1
Text MD5: 7cd30d9105a9c1d1b0166962c966fe23
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-16 22:20:53
Source code size: 114 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 175 / 213
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)