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

5
LINES

< > BotCompany Repo | #1015082 // dropTrailingNullChars

JavaX fragment (include)

static S dropTrailingNullChars(S s) {
  int i = l(s);
  while (i > 0 && s.charAt(i-1) == '\0') --i;
  ret takeFirst(i, s);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1015082
Snippet name: dropTrailingNullChars
Eternal ID of this version: #1015082/1
Text MD5: dd4e0d3de0f9a231c87dd88810904892
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-07 23:47:40
Source code size: 128 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 392 / 440
Referenced in: [show references]